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
Versions
Update thumbnail
Upload a thumbnail for a specific version of an asset.
POST
/
workspaces
/
assets
/
{asset_id}
/
versions
/
{version_id}
/
thumbnail
curl --request POST \
--url https://api.mudstack.com/workspaces/assets/{asset_id}/versions/{version_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>",
"commit_parent_id": "<string>",
"created_by_user_id": "<string>",
"thumbnail_file_id": "<string>",
"name": "<string>",
"description": "<string>",
"key": "<string>",
"size": 123,
"version_number": 123,
"sequence": 123,
"checksum": "<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 asset version with the new thumbnail
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.mudstack.com/workspaces/assets/{asset_id}/versions/{version_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>",
"commit_parent_id": "<string>",
"created_by_user_id": "<string>",
"thumbnail_file_id": "<string>",
"name": "<string>",
"description": "<string>",
"key": "<string>",
"size": 123,
"version_number": 123,
"sequence": 123,
"checksum": "<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": {}
}
}