Skip to main content
POST
Create a playlist

Authorizations

Authorization
string
header
required

Bearer token authentication. Accepts company-admin tokens with storefront.view for read operations and storefront.update for writes and scan triggers (legacy per-resource grants like categories.update / products.view / etc. are still accepted during the migration), required on every company operation. Storefront public operations under /api/v202604/{resource} and /api/v202604/{resource}/{slug} are unauthenticated (security: []).

Query Parameters

lang
string

Response locale. ISO code (e.g. fr, de). When omitted, responds in the company's default locale. On the public surface, falls back to en for any translated field missing in the requested locale.

Example:

"fr"

Body

application/json

The wrapper key is library (the underlying ActiveRecord model name), while the URL resource is playlists — this mismatch is intentional, not a typo. The write payload nests under library; with additionalProperties: false a { playlist: ... } body is rejected.

library
object
required

Response

Playlist created.

Shared success envelope for list / show / create / update responses: the resource payload is returned alongside a top-level integer status and meta. Composed onto each resource response via allOf.

status
integer
required
Example:

200

meta
object
required

Response metadata included on every successful response body. request_id and timestamp are always present; list endpoints also add pagination.

playlist
object
required

Authenticated (company-surface) Playlist read shape: the public PlaylistBase plus custom_slug, admin metadata never rendered on the public surface.