Logo
IdentityNow API Documentation

Reject a Non-Employee Request

POST {{baseUrl}}/non-employee-approvals/:id/reject

This endpoint will reject an approval item request and notify user. The current user must be the requested approver.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "id": "2c1e388b-1e55-4b0a-ab5c-897f1204159c", "approver": { "type": "IDENTITY", "id": "5168015d32f890ca15812c9180835d2e" }, "accountName": "test.account", "approvalStatus": "APPROVED", "approvalOrder": 1, "comment": "I approve", "modified": "2019-08-23T18:52:59.162Z", "created": "2019-08-23T18:40:35.772Z", "nonEmployeeRequest": { "id": "ac110005-7156-1150-8171-5b292e3e0084", "requester": { "type": "IDENTITY", "name": "William Smith" } } }



Curl
curl -X POST 'https://tenant.api.identitynow.com/v3/non-employee-approvals/:id/reject' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"comment":"approved"}'

ENDPOINTS