Contents

Resource

A resource—such as an album, song, or playlist.

Declaration

object Resource

Properties

NameTypeDescription
id Requiredstring

Persistent identifier of the resource.

type Requiredstring

The type of resource.

hrefstring

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

attributesResource.Attributes

Attributes belonging to the resource (can be a subset of the attributes). The members are the names of the attributes defined in the object model.

relationshipsResource.Relationships

Relationships belonging to the resource (can be a subset of the relationships). The members are the names of the relationships defined in the object model. See Relationship object for the values of the members.

metaResource.Meta

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

viewsResource.Views

The relationship views for the resource.

Discussion

A Resource object may contain just these identifier members: id, type, href, and meta.

Topics

Related Objects

Dictionaries

See Also

Getting Resource and Relationship Information