Update entity casting

PUT /data/projects/{project_id}/entities/{entity_id}/casting

Modify the casting relationships for a specific entity by updating which assets are linked to it.

Path parameters

  • project_id Required

    Unique identifier of the project

  • entity_id Required

    Unique identifier of the entity

application/json

Body Required

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

      Asset identifier to link

    • asset_name string

      Asset name

Responses

  • 200 application/json

    Entity casting successfully updated

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

      Entity unique identifier

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

        Casting entry unique identifier

      • asset_id string(uuid)

        Asset identifier

      • asset_name string

        Asset name

PUT /data/projects/{project_id}/entities/{entity_id}/casting
curl \
 --request PUT 'http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/entities/a24a6ea4-ce75-4665-a070-57453082c25/casting' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"casting":[{"asset_id":"c46c8gc6-eg97-6887-c292-79675204e47","asset_name":"Main Character"}]}'
Request examples
{
  "casting": [
    {
      "asset_id": "c46c8gc6-eg97-6887-c292-79675204e47",
      "asset_name": "Main Character"
    }
  ]
}
Response examples (200)
{
  "entity_id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "casting": [
    {
      "id": "b35b7fb5-df86-5776-b181-68564193d36",
      "asset_id": "c46c8gc6-eg97-6887-c292-79675204e47",
      "asset_name": "Main Character"
    }
  ]
}