Skip to content
Sign in Create account

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_id string path required

Request body

application/json OrggrcComplianceOrgPackDisable

  • reason string or null
    Length: at most 512 characters. Example: "Annual review"
  • slug string required
    Length: 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_id integer or string required
  • pack string required
  • status string required
    Value: "disabled"
  • was_active boolean 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

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string