Update asset casting

PUT /data/assets/{asset_id}/casting

Modify the casting relationships for a specific asset by updating which shots or sequences use this asset.

Path parameters

  • asset_id Required

    Unique identifier of the asset

application/json

Body Required

  • casting array[object]
    Hide casting attributes Show casting attributes object
    • entity_id string(uuid)

      Entity identifier to cast

    • entity_type string

      Entity type (shot/sequence)

Responses

  • 200 application/json

    Asset casting successfully updated

    Hide response attributes Show response attributes object
    • asset_id string(uuid)

      Asset unique identifier

    • casting array[object]
      Hide casting attributes Show casting attributes object
      • id string(uuid)

        Casting entry unique identifier

      • entity_id string(uuid)

        Entity identifier

      • entity_name string

        Entity name

PUT /data/assets/{asset_id}/casting
curl \
 --request PUT 'http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/casting' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"casting":[{"entity_id":"d57d9hd7-fh08-7998-d403-80786315f58","entity_type":"shot"}]}'
Request examples
{
  "casting": [
    {
      "entity_id": "d57d9hd7-fh08-7998-d403-80786315f58",
      "entity_type": "shot"
    }
  ]
}
Response examples (200)
{
  "asset_id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "casting": [
    {
      "id": "b35b7fb5-df86-5776-b181-68564193d36",
      "entity_id": "d57d9hd7-fh08-7998-d403-80786315f58",
      "entity_name": "SH001"
    }
  ]
}