Developer

Attachments

List attachments for a shot

GET /shots/:id/attachments

Response

Status: 200 OK
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
[
  {
    "id" : 206165,
    "url" : "https://d13yacurqjgara.cloudfront.net/users/1/screenshots/1412410/attachments/206165/weathered-ball-detail.jpg",
    "thumbnail_url" : "https://d13yacurqjgara.cloudfront.net/users/1/screenshots/1412410/attachments/206165/thumbnail/weathered-ball-detail.jpg",
    "size" : 116375,
    "content_type" : "image/jpeg",
    "views_count" : 325,
    "created_at" : "2014-02-07T16:35:09Z"
  }
]

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 returned location will return a 404 Not Found until processing is completed. If this takes longer than five minutes, be sure to contact support.

Status: 202 Accepted
Location: https://api.dribbble.com/v1/shots/471756/attachments/73829
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59

Get a single attachment

GET /shots/:shot/attachments/:id

A thumbnail_url is only present for image attachments.

Response

Status: 200 OK
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
{
  "id" : 206165,
  "url" : "https://d13yacurqjgara.cloudfront.net/users/1/screenshots/1412410/attachments/206165/weathered-ball-detail.jpg",
  "thumbnail_url" : "https://d13yacurqjgara.cloudfront.net/users/1/screenshots/1412410/attachments/206165/thumbnail/weathered-ball-detail.jpg",
  "size" : 116375,
  "content_type" : "image/jpeg",
  "views_count" : 325,
  "created_at" : "2014-02-07T16:35:09Z"
}

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