POST
/
workspaces
/
import
/
exists
/
version
curl --request POST \
  --url https://api.mudstack.com/workspaces/import/exists/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 '{
  "version_sha": "<string>",
  "asset_id": "<string>"
}'
{
  "asset_id": "<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
version_sha
string

The SHA of the version

asset_id
string

The ID of the asset (optional)

Response

200 - application/json
Asset ID and Version ID if the version exists
asset_id
string

The ID of the asset

version_id
string

The ID of the version