Controls
Suspend principals, disable intents and pause execution.
GET /v1/controls
Section titled “GET /v1/controls”The active controls, who set each, and whether the denial breaker did. sefra_viewer and above.
Setter, time and an operator’s note from the controls row; source from the latest operator.action that set the control (breaker when its actor is system), whose note is the breaker’s. Newest first, at most 1000 of each kind; truncated when a kind had more. No parameters.
Responses
| Status | Description | Body |
|---|---|---|
200 |
The controls. | object |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
Body of 200
| Field | Type | Required | Description |
|---|---|---|---|
disabled_intents |
array of Control | Yes | |
paused |
Control or null | Yes | |
suspended_principals |
array of Control | Yes | |
truncated |
boolean | Yes |
POST /v1/intents/{type}/disable
Section titled “POST /v1/intents/{type}/disable”Disable an intent type. sefra_operator, sefra_admin.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type |
path | string | Yes | Pattern: ^[a-z0-9_]+\.[a-z0-9_]+$. |
Request body
Empty, or a note.
Content type application/json, schema object.
| Field | Type | Required | Description |
|---|---|---|---|
note |
string | Yes | At most, in characters: 2000. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
The control is in the requested state; operator.action is recorded. | None |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
POST /v1/intents/{type}/enable
Section titled “POST /v1/intents/{type}/enable”Enable an intent type again. sefra_operator, sefra_admin.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type |
path | string | Yes | Pattern: ^[a-z0-9_]+\.[a-z0-9_]+$. |
Request body
Empty, or a note.
Content type application/json, schema object.
| Field | Type | Required | Description |
|---|---|---|---|
note |
string | Yes | At most, in characters: 2000. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
The control is in the requested state; operator.action is recorded. | None |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
POST /v1/pause
Section titled “POST /v1/pause”Pause admission. sefra_operator, sefra_admin.
Request body
Empty, or a note.
Content type application/json, schema object.
| Field | Type | Required | Description |
|---|---|---|---|
note |
string | Yes | At most, in characters: 2000. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
The control is in the requested state; operator.action is recorded. | None |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
POST /v1/principals/{id}/suspend
Section titled “POST /v1/principals/{id}/suspend”Suspend a principal. sefra_operator, sefra_admin.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Pattern: ^[A-Za-z0-9:._@-]{1,128}$. |
Request body
Empty, or a note.
Content type application/json, schema object.
| Field | Type | Required | Description |
|---|---|---|---|
note |
string | Yes | At most, in characters: 2000. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
The control is in the requested state; operator.action is recorded. | None |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
POST /v1/principals/{id}/unsuspend
Section titled “POST /v1/principals/{id}/unsuspend”Lift a suspension. sefra_operator, sefra_admin.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Pattern: ^[A-Za-z0-9:._@-]{1,128}$. |
Request body
Empty, or a note.
Content type application/json, schema object.
| Field | Type | Required | Description |
|---|---|---|---|
note |
string | Yes | At most, in characters: 2000. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
The control is in the requested state; operator.action is recorded. | None |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
POST /v1/resume
Section titled “POST /v1/resume”Resume admission. sefra_operator, sefra_admin.
Request body
Empty, or a note.
Content type application/json, schema object.
| Field | Type | Required | Description |
|---|---|---|---|
note |
string | Yes | At most, in characters: 2000. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
The control is in the requested state; operator.action is recorded. | None |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |