Disable a compliance pack for an organization
POST /api/v1/compliance/org/{org_id}/packs/disable
Disables a known compliance pack for the organization in the path and returns its resulting state. The JSON body requires slug and accepts an optional reason; an unknown pack returns 422. Requires the compliance-pack-toggle permission.
Authenticate with a portal session token.
Parameters
org_idstring path required
Request body
application/json OrggrcComplianceOrgPackDisable
reasonstring or nullLength: at most 512 characters. Example:"Annual review"slugstring requiredLength: 1 to 60 characters. Pattern:^[a-z0-9][a-z0-9_.-]*$. Example:"soc2"
Example
{
"slug": "soc2"
}Responses
200 Pack disabled for the organization.
application/json object
organisation_idinteger or string requiredpackstring requiredstatusstring requiredValue:"disabled"was_activeboolean required
Generated sample
{
"organisation_id": 0,
"pack": "string",
"status": "disabled",
"was_active": true
}401 Missing or invalid bearer token.
application/json object
Any keys are accepted.
403 Authenticated caller lacks the required permission, ability, or role.
application/json object
Any keys are accepted.
422 Pack slug is invalid or unknown.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string