Skip to main content

Perform Work Item

Accept or reject a work item (approval or activity).

POST https://instance.securid.com/aveksa/command.submit?cmd=performWorkItem

tip

This command replaces the deprecated Perform Approval command. Use this for both approval and activity work items.

Request

Parameters

performWorkItem
approval or activity
The action to perform. Retrieve valid values from Get Work Item Details. For example: accept, reject, or Completed.
The ID of the work item. Retrieve from Get Work Items for User.
Comment from the actor.
request-items-to-rejectComma-separated list of request item IDs to reject. Only valid for partial acceptance of an approval. Cannot be used when action is reject.
format

xml - (Default) Returns output as XML.

json - Useful for parsing into JavaScript or other languages. See www.json.org for details.

tokenDeprecated. Use the Authorization request header instead.

Headers

Bearer token
Acceptapplication/json
Content-Typeapplication/json

Response

This command does not return output properties on success. A 200 with an empty body indicates the work item was performed.

Examples

Request

curl -K -X POST \
"https://instance.securid.com/aveksa/command.submit?cmd=performWorkItem&format=json&workItemType=approval&action=accept&workItemId=441:WPDS:1&comment=Approved" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"

Response

{
"data": {
"type": "performWorkItem"
}
}

Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.

See Also