POST
/
workspaces
/
assets
/
{asset_id}
/
versions
curl --request POST \
  --url https://api.mudstack.com/workspaces/assets/{asset_id}/versions \
  --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

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

Response

201 - application/json
The created asset version
id
string
required

Unique identifier for the asset version

asset_id
string
required

Identifier of the associated asset

created_by_user_id
string
required

Identifier of the user who created the asset version

thumbnail_file_id
string
required

Identifier of the thumbnail file

name
string
required

Name of the asset version

description
string
required

Description of the asset version

key
string
required

Key associated with the asset version

size
integer
required

Size of the asset version

version_number
integer
required

Version number of the asset

sequence
integer
required

Sequence number of the asset version

checksum
string
required

Checksum of the asset version

commit_parent_id
string

Identifier of the parent commit, if any

user
object

User who created the asset version