Skip to main content
POST
/
api
/
v1
/
assets
/
{assetId}
/
archive
ArchiveAsset
curl --request POST \
  --url https://your-sift-api-url.com/api/v1/assets/{assetId}/archive \
  --header 'Authorization: Bearer <token>'
{
  "archivedRunIds": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

assetId
string
required

The id of the asset to be archived. Required.

Query Parameters

archiveRuns
boolean

If true, will archive all runs associated with the asset.

Response

A successful response.

The response of a call to AssetService_ArchiveAsset.

archivedRunIds
string[]

List of run IDs that were archived when archive_runs was set to true. This field will be empty if archive_runs was false or if no runs were archived.