Documentation Index

Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt

Use this file to discover all available pages before exploring further.

v1.0.0OAS 3.0.3

Video Player Profiles API

Download OpenAPI Document

Use the Video Player Profiles API to manage reusable video player configurations (profiles). Profiles allow you to define a set of player and source options once and apply them across multiple video player instances. See the player profiles guide for information on how to use profiles with the Cloudinary Video Player.

The API supports Basic Authentication using your Cloudinary API Key and API Secret (which can be found in the API Keys page of your Cloudinary Console).

Get a list of player profiles

Responses

200 A list of player profiles
application/json
VideoPlayerProfilesWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoPlayerProfilesResponse[]Required
    ShowHide child attributes of data
    Items VideoPlayerProfilesResponse
    • name string
    • is_system_profile booleanRequired
401 Authentication error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
403 Authorization error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
GET/player/profiles
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/player/profiles' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "2f9754330d613b998bb572696869b1ed",
  "data": [
    {
      "name": "my_profile"
    },
    {
      "name": "my_other_profile"
    }
  ]
}

Get a single player profile

Path parameters

  • profileName stringRequired

    player profile name

Responses

200 A player profile
application/json
VideoPlayerProfileWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoPlayerProfileDetailsResponseRequired
    ShowHide child attributes of data
    • id string
    • name string
    • created_at integer
      format int64 Signed 64-bit integer
    • updated_at integer
      format int64 Signed 64-bit integer
    • is_system_profile booleanRequired
    • contents VideoPlayerConfigResponse
      ShowHide child attributes of contents
      • playerOptions objectRequired
        ShowHide child attributes of playerOptions
        • additional properties any
      • sourceOptions objectRequired
        ShowHide child attributes of sourceOptions
        • additional properties any
401 Authentication error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
403 Authorization error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
404 Player profile not found
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
GET/player/profiles/{profileName}
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/player/profiles/{profileName}' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "name": "my_profile",
    "is_system_profile": false,
    "created_at": 1700000000,
    "updated_at": 1700000000,
    "contents": {
      "playerOptions": {},
      "sourceOptions": {}
    }
  }
}

Create or replace a player profile

Path parameters

  • profileName stringRequired

    player profile name

Body application/json

VideoPlayerConfigPayload
  • playerOptions object
    ShowHide child attributes of playerOptions
    • additional properties any
  • sourceOptions object
    ShowHide child attributes of sourceOptions
    • additional properties any

Responses

200 A player profile
application/json
VideoPlayerProfileWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoPlayerProfileDetailsResponseRequired
    ShowHide child attributes of data
    • id string
    • name string
    • created_at integer
      format int64 Signed 64-bit integer
    • updated_at integer
      format int64 Signed 64-bit integer
    • is_system_profile booleanRequired
    • contents VideoPlayerConfigResponse
      ShowHide child attributes of contents
      • playerOptions objectRequired
        ShowHide child attributes of playerOptions
        • additional properties any
      • sourceOptions objectRequired
        ShowHide child attributes of sourceOptions
        • additional properties any
401 Authentication error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
403 Authorization error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
404 Player profile not found
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
PUT/player/profiles/{profileName}
curl -X PUT 'https://api.cloudinary.com/v2/video/CLOUD_NAME/player/profiles/{profileName}' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "playerOptions": {},
  "sourceOptions": {}
}'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "name": "my_profile",
    "is_system_profile": false,
    "created_at": 1700000000,
    "updated_at": 1700000000,
    "contents": {
      "playerOptions": {},
      "sourceOptions": {}
    }
  }
}

Delete a player profile

Path parameters

  • profileName stringRequired

    player profile name

Responses

200 OK
application/json
MessageWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data objectRequired
    ShowHide child attributes of data
    • message string
401 Authentication error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
403 Authorization error
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
404 Player profile not found
application/json
ErrorWrappedResponse
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string
DEL/player/profiles/{profileName}
curl -X DELETE 'https://api.cloudinary.com/v2/video/CLOUD_NAME/player/profiles/{profileName}' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "message": "string"
  }
}

Models

MessageWrappedResponse

Show schema
object
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data objectRequired
    ShowHide child attributes of data
    • message string

ErrorWrappedResponse

Show schema
object
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error object
    ShowHide child attributes of error
    • message string

VideoPlayerProfilesResponse

Show schema
object
  • name string
  • is_system_profile booleanRequired

VideoPlayerProfileDetailsResponse

Show schema
object
  • id string
  • name string
  • created_at integer
    format int64 Signed 64-bit integer
  • updated_at integer
    format int64 Signed 64-bit integer
  • is_system_profile booleanRequired
  • contents VideoPlayerConfigResponse
    ShowHide child attributes of contents
    • playerOptions objectRequired
      ShowHide child attributes of playerOptions
      • additional properties any
    • sourceOptions objectRequired
      ShowHide child attributes of sourceOptions
      • additional properties any

VideoPlayerProfilesWrappedResponse

Show schema
object
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoPlayerProfilesResponse[]Required
    ShowHide child attributes of data
    Items VideoPlayerProfilesResponse
    • name string
    • is_system_profile booleanRequired

VideoPlayerProfileWrappedResponse

Show schema
object
  • request_id stringRequired
    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoPlayerProfileDetailsResponseRequired
    ShowHide child attributes of data
    • id string
    • name string
    • created_at integer
      format int64 Signed 64-bit integer
    • updated_at integer
      format int64 Signed 64-bit integer
    • is_system_profile booleanRequired
    • contents VideoPlayerConfigResponse
      ShowHide child attributes of contents
      • playerOptions objectRequired
        ShowHide child attributes of playerOptions
        • additional properties any
      • sourceOptions objectRequired
        ShowHide child attributes of sourceOptions
        • additional properties any

VideoPlayerProfileUpsertPayload

Show schema
VideoPlayerConfigPayload
  • playerOptions object
    ShowHide child attributes of playerOptions
    • additional properties any
  • sourceOptions object
    ShowHide child attributes of sourceOptions
    • additional properties any

VideoPlayerConfigResponse

Show schema
object
  • playerOptions objectRequired
    ShowHide child attributes of playerOptions
    • additional properties any
  • sourceOptions objectRequired
    ShowHide child attributes of sourceOptions
    • additional properties any

VideoPlayerConfigPayload

Show schema
object
  • playerOptions object
    ShowHide child attributes of playerOptions
    • additional properties any
  • sourceOptions object
    ShowHide child attributes of sourceOptions
    • additional properties any