Create a new approval policy.
The ID of the entity that owns the requested resource.
The name of the approval policy.
A brief description of the approval policy.
A list of JSON objects that represents the approval policy script. The script contains the logic that determines whether an action should be sent to approval. This field is required, and it should contain at least one script object.
The date and time (in the ISO 8601 format) when the approval policy becomes active. Only payables submitted for approval during the policy’s active period will trigger this policy. If omitted or null
, the policy is effective immediately. The value will be converted to UTC.
The date and time (in the ISO 8601 format) when the approval policy stops being active and stops triggering approval workflows.If ends_at
is provided in the request, then starts_at
must also be provided and ends_at
must be later than starts_at
. The value will be converted to UTC.
A JSON object that represents the trigger for the approval policy. The trigger specifies the event that will trigger the policy to be evaluated.
Successful Response
The name of the approval policy.
A brief description of the approval policy.
A list of JSON objects that represents the approval policy script. The script contains the logic that determines whether an action should be sent to approval. This field is required, and it should contain at least one script object.
The current status of the approval policy.
The date and time (in the ISO 8601 format) when the approval policy becomes active. Only payables submitted for approval during the policy’s active period will trigger this policy. If omitted or null
, the policy is effective immediately. The value will be converted to UTC.
The date and time (in the ISO 8601 format) when the approval policy stops being active and stops triggering approval workflows.If ends_at
is provided in the request, then starts_at
must also be provided and ends_at
must be later than starts_at
. The value will be converted to UTC.
A JSON object that represents the trigger for the approval policy. The trigger specifies the event that will trigger the policy to be evaluated.