Remove an asset. If tasks of the asset have working files, the asset is only canceled that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.
POST
/import/shotgun/remove/asset
curl
curl -X POST "http://api.example.com/import/shotgun/remove/asset" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"id": 12345
}'
import requests
url = "http://api.example.com/import/shotgun/remove/asset"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json",
"Content-Type": "application/json"
}
params = {}
payload = {
"id": 12345
}
response = requests.post(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())
Request example
{
"id": 12345
}
Response examples (200)
{
"success": true,
"removed_instance_id": "a24a6ea4-ce75-4665-a070-57453082c250"
}