Import shotgun shots

POST /import/shotgun/shots

Import Shotgun shots. Send a list of Shotgun shot entries in the JSON body. Returns created or updated shots with frame ranges, custom fields, and asset links.

application/json

Body Required

  • id integer

    Shotgun ID of the shot

  • code string

    Shot code

  • sg_cut_in integer

    Cut in frame

  • sg_cut_duration integer

    Cut duration in frames

  • project object

    Project information

    Hide project attribute Show project attribute object
    • name string
  • sg_sequence object

    Sequence information

    Hide sg_sequence attribute Show sg_sequence attribute object
    • id integer
  • sg_scene object

    Scene information

    Hide sg_scene attribute Show sg_scene attribute object
    • id integer
  • assets array[object]

    Linked assets

    Hide assets attribute Show assets attribute object
    • id integer

Responses

  • 200 application/json

    Shots imported successfully

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

      Shot unique identifier

    • name string

      Shot name

    • data object

      Shot data with frame ranges and custom fields

    • created_at string(date-time)

      Creation timestamp

    • updated_at string(date-time)

      Update timestamp

  • 400

    Invalid request body or data format error

POST /import/shotgun/shots
curl \
 --request POST 'http://api.example.com/import/shotgun/shots' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '[{"id":12345,"code":"SH010","assets":[{"id":33333}],"project":{"name":"My Project"},"sg_scene":{"id":22222},"sg_cut_in":1001,"sg_sequence":{"id":11111},"sg_cut_duration":50}]'
Request example
[
  {
    "id": 12345,
    "code": "SH010",
    "assets": [
      {
        "id": 33333
      }
    ],
    "project": {
      "name": "My Project"
    },
    "sg_scene": {
      "id": 22222
    },
    "sg_cut_in": 1001,
    "sg_sequence": {
      "id": 11111
    },
    "sg_cut_duration": 50
  }
]
Response examples (200)
[
  {
    "id": "a24a6ea4-ce75-4665-a070-57453082c25",
    "name": "SH010",
    "data": {
      "frame_in": 1001,
      "frame_out": 1051
    },
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T11:00:00Z"
  }
]