Back to Content Management API

contentReleaseSchedule

Schedules an open content release to publish at a future time. Call it again to reschedule. Like contentReleasePublish, scheduling fails when the release has conflicts unless overwriteConflicts is true. Conflicts that appear before the scheduled time cause the publish to fail unless overwriteConflicts was set.

Arguments

  • Name
    id
    Type
    ID!
    Description

    The ID of the release you want to schedule.

  • Name
    input
    Type
    ContentReleaseScheduleInput!
    Description

    An object.

    • scheduledPublishAt: DateTime! When to publish. Must be in the future.
    • timezone: String The IANA time zone the schedule was set in, for display.
    • overwriteConflicts: Boolean Publish even if conflicts exist at publish time.

Returns

Request

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

const query = `
  mutation ContentReleaseSchedule($id: ID!, $input: ContentReleaseScheduleInput!) {
    contentReleaseSchedule(id: $id, input: $input) {
      id
      scheduledPublishAt
      scheduleTimezone
      scheduleOverwriteConflicts
    }
  }
`
const variables = {
  id: 'release-id',
  input: {
    scheduledPublishAt: '2026-11-27T05:00:00.000Z',
    timezone: 'America/New_York',
  },
}
const response = await packClient.fetch(query, { variables })
console.log(response.data)

Response

{
  "data": {
    "contentReleaseSchedule": {
      "id": "release-id",
      "scheduledPublishAt": "2026-11-27T05:00:00.000Z",
      "scheduleTimezone": "America/New_York",
      "scheduleOverwriteConflicts": false
    }
  }
}

Was this page helpful?