Core Concepts
Examples
Endpoints
- Accounts
- Workspaces
- POSTCreate workspace
- GETGet workspace
- PUTUpdate workspace
- DELDelete workspace
- GETGet thumbnail
- Members
- Assets
- POSTCreate or update asset
- GETGet asset
- GETGet assets
- PATCHUpdate asset
- DELDelete asset
- DELDelete assets
- GETSearch assets
- GETSearch asset ids
- GETDownload asset
- POSTDownload assets
- PATCHRestore asset
- PATCHRename asset
- POSTGet upload url
- POSTDownload assets
- File Locking
- Attachments
- Comments
- History
- Libraries
- Reviews
- Review Requests
- Favorites
- Subscriptions
- Tags
- Tasks
- Uploading
- Versions
- Status
- POST
- Folders
- Libraries
- Tags
- Tasks
- Importing (upload alternative)
- History
- Settings
- Usage
- Shared Trash
- POST
- Users
- Authentication
Attachments
Update attachment
Update a specific attachment by its ID.
PATCH
/
workspaces
/
assets
/
{asset_id}
/
attachments
/
{attachment_id}
curl --request PATCH \
--url https://api.mudstack.com/workspaces/assets/{asset_id}/attachments/{attachment_id} \
--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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
multipart/form-data
Response
200 - application/json
The updated attachment
Represents an attachment associated with an asset.
Was this page helpful?
curl --request PATCH \
--url https://api.mudstack.com/workspaces/assets/{asset_id}/attachments/{attachment_id} \
--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": {}
}
}