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>
Asset ID if the asset exists
The response is of type object.
object
Was this page helpful?