cURL
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>" }
Check if an asset exists by path. Requires file_location and file_name.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The location of the file
The name of the file
Asset ID if the asset exists
The ID of the asset
Was this page helpful?