Skip to main content
POST
Create Pre Approval Rule

Authorizations

Authorization
string
header
required

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

Body

application/json
justification
string
required

The justification of this preapproval rule.

Maximum string length: 500
app_id
string
required

The ID of the app associated with this pre-approval rule.

time_based_access
string[]

Preapproval rule time access length,

preapproved_groups
BaseGroup · object[]

The preapproved groups of this preapproval rule.

preapproved_permissions
RequestablePermissionBase · object[]

The preapproved permissions of this preapproval rule.

preapproved_users_by_attribute
AttributeEqualityRule · object[]

The set of users this pre-approval rule applies to, defined by attributes that must be true about the user

preapproval_webhooks
BaseInlineWebhook · object[]

The preapproval webhooks of this preapproval rule.

Response

Successful Response

justification
string
required

The justification of this preapproval rule.

Maximum string length: 500
app_id
string
required

The ID of the app associated with this pre-approval rule.

app_class_id
string
required

The ID of the service associated with this pre-approval rule.

app_instance_id
string
required

Optionally, an app has an identifer associated with it's particular instance.

time_based_access
string[]

Preapproval rule time access length,

id
string

The ID of this preapproval rule.

preapproved_groups
Group · object[]

The preapproved groups of this preapproval rule.

preapproved_users_by_attribute
AttributeEqualityRule · object[]

The set of users this pre-approval rule applies to, defined by attributes that must be true about the user

preapproved_permissions
RequestablePermissionBaseOutput · object[]

The preapproved permissions of this preapproval rule.

preapproval_webhooks
InlineWebhook · object[]

The preapproval webhooks of this preapproval rule.