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

The location of the file

file_name
string

The name of the file

Response

200 - application/json
Asset ID if the asset exists
asset_id
string

The ID of the asset