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_tagsarray of stringcontrolsarray of object requiredEach item:
Any keys are accepted.
descriptionstring or nullLength: at most 1024 characters. Example:"Example compliance controls"ingester_pillsarray of stringnamestring requiredLength: 1 to 120 characters. Example:"Sample controls"regulationsarray of string requiredItems: at least 1 itemsslugstring requiredLength: 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_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
403 The authenticated user is not permitted to perform this operation.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
409 The request conflicts with an existing resource.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
422 The request failed validation.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
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
500 The operation failed because of a server error.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.