Import shotgun versions
Import Shotgun versions (preview files). Send a list of Shotgun version entries in the JSON body. Only versions linked to tasks are imported. Returns created or updated preview files.
POST
/import/shotgun/versions
curl \
--request POST 'http://api.example.com/import/shotgun/versions' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '[{"id":12345,"code":"v001","user":{"id":22222},"sg_task":{"id":11111},"description":"First version","sg_uploaded_movie":{"url":"https://example.com/movie.mp4","name":"movie.mp4"}}]'
Request example
[
{
"id": 12345,
"code": "v001",
"user": {
"id": 22222
},
"sg_task": {
"id": 11111
},
"description": "First version",
"sg_uploaded_movie": {
"url": "https://example.com/movie.mp4",
"name": "movie.mp4"
}
}
]
Response examples (200)
[
{
"id": "a24a6ea4-ce75-4665-a070-57453082c25",
"name": "v001",
"description": "First version",
"source": "Shotgun",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}
]