Object

Relationship

A to-one or to-many relationship from one resource object to others.

Properties

data

One or more destination objects.

href
string

A URL subpath that fetches the resource as the primary object. This member is only present in responses.

Information about the request or response. The members may be any of the endpoint parameters.

next
string

Link to the next page of resources in the relationship. Contains the offset query parameter that specifies the next page. See Fetch Resources by Page.

Discussion

A to-one relationship contains a single object in the data array.

The rules that apply to the members of this object are:

  • Must contain one of these members: href, data, or meta.

  • If a to-many relationship, may contain the next member.

Topics

Related Objects

object Relationship.Meta

Information about the request or response.

See Also

Getting Resource and Relationship Information

object Resource

A resource—such as an album, song, or playlist—in the Apple Music catalog or iCloud Music Library.