Developer

Attachments

Create an attachment

POST /shots/:shot/attachments

Creating an attachment requires the user to be authenticated with the upload scope. The authenticated user must own the shot and be a pro, a team, or a member of a team.

Parameters

Name Type Description
file file Required. The attachment file.

It must be no larger than 10 megabytes.

Response

Creating an attachment happens asynchronously. After creation the attachment won’t immediately appear in the shot’s list of attachments until processing is completed.

Status: 202 Accepted
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59

Delete an attachment

DELETE /shots/:shot/attachments/:id

Deleting an attachment requires the user to be authenticated with the upload scope. The authenticated user must also own the attachment.

Response

Status: 204 No Content
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59