Skip to content
Sign in Create account

Post packs

POST /api/v1/compliance/packs

Read or update compliance controls and compliance pack data for the authenticated organization.

Authenticate with a portal session token.

Request body (optional)

application/json OrggrcComplianceCustomPack

  • audit_event_tags array of string
  • controls array of object required

    Each item:

    Any keys are accepted.

  • description string or null
    Length: at most 1024 characters. Example: "Example compliance controls"
  • ingester_pills array of string
  • name string required
    Length: 1 to 120 characters. Example: "Sample controls"
  • regulations array of string required
    Items: at least 1 items
  • slug string required
    Length: 1 to 60 characters. Pattern: ^[a-z0-9][a-z0-9_-]*$. Example: "sample-pack"

Example

{
  "controls": [],
  "name": "Sample controls",
  "regulations": [
    "Example Standard"
  ],
  "slug": "sample-pack"
}

Responses

201 Operation completed successfully.

application/json object

Any keys are accepted.

401 Authentication is required or invalid.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
403 The authenticated user is not permitted to perform this operation.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
409 The request conflicts with an existing resource.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
422 The request failed validation.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
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

500 The operation failed because of a server error.

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.