Import shotgun tasks
Import Shotgun tasks. Send a list of Shotgun task entries in the JSON body. Only tasks with steps and projects are imported. Returns created or updated tasks with assignees.
POST
/import/shotgun/tasks
curl \
--request POST 'http://api.example.com/import/shotgun/tasks' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '[{"id":12345,"step":{"id":11111},"entity":{"id":33333,"type":"Asset"},"project":{"id":22222},"due_date":"2024-02-15","duration":30,"created_by":{"id":44444},"start_date":"2024-01-15","sg_sort_order":1,"sg_status_list":"IP","task_assignees":[{"id":55555}],"cached_display_name":"Modeling for Asset"}]'
Request example
[
{
"id": 12345,
"step": {
"id": 11111
},
"entity": {
"id": 33333,
"type": "Asset"
},
"project": {
"id": 22222
},
"due_date": "2024-02-15",
"duration": 30,
"created_by": {
"id": 44444
},
"start_date": "2024-01-15",
"sg_sort_order": 1,
"sg_status_list": "IP",
"task_assignees": [
{
"id": 55555
}
],
"cached_display_name": "Modeling for Asset"
}
]
Response examples (200)
[
{
"id": "a24a6ea4-ce75-4665-a070-57453082c25",
"name": "Modeling for Asset",
"start_date": "2024-01-15",
"due_date": "2024-02-15",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}
]