API Stability Long-Term

The cancelRedactEvents() GraphQL mutation is used to cancel a previously submitted redaction. Returns true if the redaction was cancelled; returns false otherwise. Cancellation is best effort. If some events have already been redacted, they aren't restored.

For more information on creating views to redact data, see the Creating a Repository or View documentation page. You may also want to look at General Settings for related information.

Syntax

Below is the syntax for the cancelRedactEvents() mutation field:

graphql
cancelRedactEvents(
      input: CancelRedactEventsInput!
   ): boolean!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  cancelRedactEvents(
    input: {
      repositoryName: "sandbox",
      redactionTaskId: "N8M03lslv8UxWSlCzNmyASN1"
    }
  )
}
Example Responses
Show:
json
{
  "data": {
    "cancelRedactEvents": true
  }
}

Given Datatypes

For CancelRedactEventsInput, there a couple of parameters. Below is a list of them along with a description of each:

Table: CancelRedactEventsInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 17, 2024
redactionTaskIdstringyes  The unique identifier of the readaction task.
repositoryNamestringyes  The name of the repository associated with the events.