POST
/
workspaces
/
assets
/
{asset_id}
/
attachments
/
{attachment_id}
/
thumbnail
curl --request POST \
  --url https://api.mudstack.com/workspaces/assets/{asset_id}/attachments/{attachment_id}/thumbnail \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-account-id: <x-account-id>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "id": "<string>",
  "asset_id": "<string>",
  "created_by_user_id": "<string>",
  "file_id": "<string>",
  "thumbnail_file_id": "<string>",
  "review_id": "<string>",
  "comment_id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "user": {
    "id": "<string>",
    "auth0UserID": "<string>",
    "username": "<string>",
    "email": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "avatar_file_id": "<string>",
    "defaultAvatar": 123,
    "industry": "<string>",
    "occupation": "<string>",
    "company": "<string>",
    "emailVerified": true,
    "isActive": true,
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "zipCode": "<string>",
    "invited_by_user": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-account-id
string
required
x-workspace-id
string
required

Path Parameters

asset_id
string
required
attachment_id
string
required

Body

multipart/form-data

Response

200 - application/json
The updated attachment with the new thumbnail

Represents an attachment associated with an asset.