Skip to main content

control

Requires permission settings:controls:manage.

Returns one control, or null when the organization has none with that ID. 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:

query Control($id: ID!) {
control(id: $id) {
id
name
archived
checkpoint
invalid
invalidReason
conditions {
number
fact
flag
list
op
text
}
}
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"control": {
"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"
}
]
}
}
}
control(
id: ID!
): ControlRuleType

Arguments​

control.id ● ID! non-null scalar​

The ID of the control.

Type​

ControlRuleType object​

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