POST
/
workspaces
/
assets
/
{asset_id}
/
attachments
curl --request POST \
  --url https://api.mudstack.com/workspaces/assets/{asset_id}/attachments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-account-id: <x-account-id>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --form 'body={}'
{
  "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

Body

multipart/form-data
file
file
body
object

Response

200 - application/json
The created attachment

Represents an attachment associated with an asset.

id
string

Unique identifier for the asset attachment.

asset_id
string

Identifier of the associated asset.

created_by_user_id
string

Identifier of the user who created the attachment.

file_id
string

Identifier of the file associated with the attachment.

thumbnail_file_id
string

Identifier of the thumbnail file associated with the attachment.

review_id
string

Identifier of the associated review.

comment_id
string

Identifier of the associated comment.

name
string

Name of the attachment.

description
string

Description of the attachment.

user
object

User associated with the attachment.