POST
/
workspaces
/
import
/
create
/
asset
curl --request POST \
  --url https://api.mudstack.com/workspaces/import/create/asset \
  --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_type_id": "<string>",
  "library_id": "<string>",
  "description": "<string>",
  "tags": [
    "<string>"
  ],
  "file_location": "<string>",
  "checksum": "<string>",
  "file_name": "<string>",
  "commit_id": "<string>",
  "upload_key": "<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
asset_type_id
string
library_id
string
description
string
tags
string[]
file_location
string
checksum
string
file_name
string
commit_id
string
upload_key
string

Response

200 - application/json
Successful response
asset_id
string
version_id
string