cURL
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>" }
Check if a version exists by SHA. Requires the SHA and optionally the asset_id.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The SHA of the version
The ID of the asset (optional)
Asset ID and Version ID if the version exists
The ID of the asset
The ID of the version
Was this page helpful?