POST
/
workspaces
/
import
/
create
/
version
curl --request POST \
  --url https://api.mudstack.com/workspaces/import/create/version \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-account-id: <x-account-id>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '{
  "asset_id": "<string>",
  "commit_id": "<string>",
  "upload_key": "<string>",
  "description": "<string>",
  "name": "<string>",
  "set_current": true,
  "commit_parent_id": "<string>",
  "checksum": "<string>"
}'
{
  "version_id": "<string>"
}

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

Body

application/json
asset_id
string

The ID of the asset.

commit_id
string

The ID of the commit.

upload_key
string

The temporary upload key.

description
string

Description of the version.

name
string

Name of the version.

set_current
boolean

Whether to set this version as current.

commit_parent_id
string

The parent commit ID.

checksum
string

The checksum of the file.

Response

200 - application/json
Successfully created version
version_id
string

The ID of the created version.