Archive asset
documentedArchive an asset.
POST /spaces/{space_id}/assets/{asset_id}/archiveAssetsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
# Note: This uses the Contentful CMA v1 archive endpoint: https://api.contentful.com/spaces/{{$space_id}}/assets/{{$asset_id}}/archive
# If you are using CMA v2 with environments, use:
# https://api.contentful.com/spaces/{{$space_id}}/environments/{{$environment_id}}/assets/{{$asset_id}}/archived
npx -y keychains@latest curl "https://api.contentful.com/spaces/{{$space_id}}/assets/{{$asset_id}}/archive" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/vnd.contentful.management.v1+json" \
-H "Accept: application/json" \
-H "X-Contentful-Version: {{$version}}" \
-d '{"note": "{{$note}}"}'