Skip to content

Rest API

Accept, deny or retry one staged change

PATCH
/api/v1/wiki/tasks/{taskId}/changes/{changeId}

Act on a single change inside a content library suggestion task.

Notes

  • accept writes the change to the library, deny discards it, retry re-runs a change that failed to apply
  • accept and deny answer 200 with the task’s new state. retry answers 202, because it runs asynchronously
taskId
required
string
changeId
required
string
x-api-key
required
string

Your API key from account settings.

x-user-email
required
string

The email address of your user.

x-account-id
required
string

The ID of your account. You can find this in the account settings.

x-website-id
required
string

The ID of the workspace you want to use.

object
action
required
string
Allowed values: accept deny retry
Example
{
"action": "accept"
}

The change was accepted or denied.

object
changeId
string
changeStatus
string
Allowed values: accepted denied
taskState
string

A retry was started.

object
changeId
string
changeStatus
string
Allowed values: retrying

Unauthorized - invalid API key.

Bad request - missing ids, an invalid action, or the task is not a content library suggestion.