Reject an Approval Item

POST {{baseUrl}}/work-items/:id/reject/:approvalItemId

This API rejects an Approval Item. Either an admin, or the owning/current user must make this request.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"id":"2c9180835d2e5168015d32f890ca1581","requesterId":"2c9180835d2e5168015d32f890ca1581","requesterDisplayName":"John Smith","ownerId":"2c9180835d2e5168015d32f890ca1581","ownerName":"Jason Smith","created":"2017-07-11T18:45:37.098Z","modified":"2018-06-25T20:22:28.104Z","description":"Create account on source 'AD'","state":"FINISHED","type":"GENERIC","remediationItems":{"id":"2c9180835d2e5168015d32f890ca1581","targetId":"2c9180835d2e5168015d32f890ca1581","targetName":"john.smith","targetDisplayName":"emailAddress","applicationName":"Active Directory","attributeName":"phoneNumber","attributeOperation":"update","attributeValue":"512-555-1212","nativeIdentity":"jason.smith2"},"approvalItems":{"id":"2c9180835d2e5168015d32f890ca1581","account":"john.smith","application":"Active Directory","name":"emailAddress","operation":"update","value":"a@b.com","state":"FINISHED"},"name":"Account Create","completed":"2018-10-19T13:49:37.385Z","numItems":19,"errors":["The work item ID that was specified was not found."]}