Skip to main content
POST
Create

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

The request message for creating a new request schema.

description
string | null

An optional description of the request schema's purpose.

fieldGroups
Field Group · object[] | null

Logical groupings of fields for display purposes.

fieldRelationships
Field Relationship · object[] | null

Dependencies between fields that control conditional visibility or validation.

fields
Field · object[] | null

The form fields that users must fill out when requesting access.

justificationVisibility
enum<string> | null

Controls whether the justification field is shown or hidden on the request form.

Available options:
JUSTIFICATION_VISIBILITY_UNSPECIFIED,
JUSTIFICATION_VISIBILITY_SHOW,
JUSTIFICATION_VISIBILITY_HIDE
name
string | null

The human-readable name for the request schema.

Response

200 - application/json

The response message for creating a request schema.

The response message for creating a request schema.

requestSchema
Request Schema · object | null

A request schema defines a form template that users fill out when requesting access.