Sluby
REST APIPlayback

Create a playback ID.

POST
/api/v1/assets/{id}/playback-ids

Authorization

bearerAuth
headerAuthorizationBearer <token>

A Sluby API key (sluby_...) sent as Authorization: Bearer <key>. Keys carry scopes: upload, read, manage.

Path Parameters

id*string

Asset id.

Request Body

application/json
  1. body
policy?string
Default"public"
Value in"public""signed"
name?string

A label to tell playback IDs apart. Trimmed; no control characters.

Lengthlength <= 100

Response Body

Created.

application/json
  1. response
id*string
Formatuuid
playback_id*string

Public pb_... handle.

policy*string
Value in"public""signed"
name*string|null
created_at*string
Formatdate-time
Example Request
curl -X POST 'https://sluby.example.com/api/v1/assets/string/playback-ids' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "playback_id": "string",  "policy": "public",  "name": "string",  "created_at": "2019-08-24T14:15:22Z"}