Back to Content Management API

contentReleaseArchive

Archives a content release. Archiving a release also cancels its scheduled publish, if one is set.

Arguments

  • Name
    id
    Type
    ID!
    Description

    The ID of the release you want to archive.

Returns

Request

import { PackClient } from '@pack/client'
const packClient = new PackClient({
  token: 'YOUR-PACK-TOKEN',
})

const query = `
  mutation ContentReleaseArchive($id: ID!) {
    contentReleaseArchive(id: $id) {
      id
      status
      archivedAt
    }
  }
`
const variables = {
  id: 'release-id',
}
const response = await packClient.fetch(query, { variables })
console.log(response.data)

Response

{
  "data": {
    "contentReleaseArchive": {
      "id": "release-id",
      "status": "archived",
      "archivedAt": "2026-09-21T10:00:00.000Z"
    }
  }
}

Was this page helpful?