Back to Content Management API

contentReleaseClearSchedule

Removes the scheduled publish from a content release. Calling it on a release without a schedule has no effect.

Arguments

  • Name
    id
    Type
    ID!
    Description

    The ID of the release.

Returns

Request

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

const query = `
  mutation ContentReleaseClearSchedule($id: ID!) {
    contentReleaseClearSchedule(id: $id) {
      id
      scheduledPublishAt
    }
  }
`
const variables = {
  id: 'release-id',
}
const response = await packClient.fetch(query, { variables })
console.log(response.data)

Response

{
  "data": {
    "contentReleaseClearSchedule": {
      "id": "release-id",
      "scheduledPublishAt": null
    }
  }
}

Was this page helpful?