Skip to content

Rest API

Deny every staged change in a content library task

POST
/api/v1/wiki/tasks/{taskId}/deny-all
curl --request POST \
--url https://api.unless.com/api/v1/wiki/tasks/example/deny-all \
--header 'x-account-id: example' \
--header 'x-api-key: example' \
--header 'x-user-email: example' \
--header 'x-website-id: example'

Discard all unresolved changes in one content library suggestion task.

Notes

  • Runs synchronously and reports how many changes it denied and the task’s resulting state
  • Grouped changes are denied once per group, so changesDenied counts groups rather than individual edits
taskId
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.

The changes were denied.

Media typeapplication/json
object
changesDenied
number
taskState
string

Example generated

{
"changesDenied": 1,
"taskState": "example"
}

Unauthorized - invalid API key.

Bad request - missing taskId, or the task is not a content library suggestion.