Skip to main content

archiveControl

Requires permission settings:controls:manage.

Archives a control: it switches off and stays in the history. Requires settings:controls:manage.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation ArchiveControl($input: ArchiveControlInput!) {
archiveControl(input: $input) {
id
name
archived
checkpoint
invalid
invalidReason
conditions {
number
fact
flag
list
op
text
}
}
}

Variables:

{
"input": {
"id": "id",
"reason": "string"
}
}

Response:

{
"data": {
"archiveControl": {
"id": "id",
"name": "string",
"archived": true,
"checkpoint": "string",
"invalid": true,
"invalidReason": "string",
"conditions": [
{
"number": 0,
"fact": "string",
"flag": true,
"list": [
"string"
],
"op": "string",
"text": "string"
}
]
}
}
}
archiveControl(
input: ArchiveControlInput!
): ControlRuleType!

Arguments​

archiveControl.input ● ArchiveControlInput! non-null input​

The control to archive and why.

Type​

ControlRuleType object​

A control: one rule checked at one checkpoint, with its mode and recent decisions.