SG Ground Truth

GET /entity/<type>/<id>/<field>/_upload

get_entity_type_id_field_upload

Step one of three. filename is a required query parameter and its absence is 400 filename is missing; the reply holds links.upload and a links.complete_upload already prefixed with /api/v1.

API

Params

part value
<field> the media field, image, sg_uploaded_movie
filename required query parameter. Its extension decides the upload type

Sample requests

r = c.get("/entity/shots/7652/image/_upload", params={"filename": "probe041.png"})
info, links = r.json()["data"], r.json()["links"]
{
  "data": {
    "timestamp": "2026-09-04T03:53:31Z",
    "upload_type": "Thumbnail",
    "upload_id": null,
    "storage_service": "s3",
    "original_filename": "probe041.png",
    "multipart_upload": false
  },
  "links": {
    "upload": "<media-url>",
    "complete_upload": "/api/v1/entity/shots/7652/image/_upload"
  }
}

Without filename:

{"errors": [{"status": 400, "code": 103, "title": "Request Parameters invalid.",
             "source": {"filename": ["filename is missing"]}}]}

Response codes

status when
200 links minted
400 source: {"filename": ["filename is missing"]}
404 Field 'Shot.attachments' does not exist. when the type has no such field

Edge cases

  • links.complete_upload is the same path as this call, differing only by method, and it comes back with /api/v1 already on it. A client that prefixes it again gets 404 with source: null, which reads as "this is not a valid upload target" rather than "your URL is wrong".
  • upload_type is derived from the field and the filename: Thumbnail for image, Attachment for the fieldless form. Nothing in the request names it.
  • data is the upload_info that step three needs. Keep the whole object rather than picking keys out of it.

Every entry on this site is the output of a probe in probes/. The corpus is generated by running those probes against a live Flow Production Tracking site, not written from memory.

Not affiliated with or endorsed by Autodesk. Flow Production Tracking is their product; this is an independent record of how its REST API answers.