-
Notifications
You must be signed in to change notification settings - Fork 5
Approve or reject a request
Ryan Newington edited this page Sep 12, 2016
·
3 revisions
Approve or reject a request.
Method | URL |
---|---|
POST | /{version}/approvals/{id}/{decision} |
Parameter name | Description |
---|---|
{id} | The ID of the approval request. Use the Get approval requests method to get the approval IDs |
{decision} | The approval decision. Valid values are approve or reject
|
{version} | The version of the [[API |
Optionally, a JSON formatted string can be provided in the request body with an approval or rejection reason
See the topic on error handling for the response codes that this API call can return.
This method does not return a response body for a successful operation. See the topic on error handling for details on the response body returned for some exception types
POST /v2/approvals/f03f50c0-f40a-4370-8531-e5d025d22cb2/approve
{
"Reason":"Approved by RN!"
}
HTTP/1.1 200 OK
POST /v2/approvals/f03f50c0-f40a-4370-8531-e5d025d22cb2/approve
HTTP/1.1 200 OK
POST /v2/approvals/f03f50c0-f40a-4370-8531-e5d025d22cb2/reject
{
"Reason":"Cannot approve at this time"
}
HTTP/1.1 200 OK