Skip to content

Initiate a workflow action on a specific object workflow.

POST/api/{version}/objects/objectworkflows/{workflow_id}/actions/{workflow_action}
NameDescription
Content-Typeapplication/json (default) or application/x-www-form-urlencoded
Acceptapplication/json (default) or application/xml
NameDescription
{workflow_id}The workflow id field value.
{workflow_action}The workflow action name retrieved from Retrieve Workflow Actions.

In the body of the request, add any fields required to initiate the action. These will differ depending on your specified {workflow_action}. For more information about fields required for an action, Retrieve Bulk Workflow Action Details. The following tables show common workflow actions in Vault, but there may be other actions which are not listed here.

Replace Workflow Owner: replaceworkflowowner
Section link for Replace Workflow Owner: replaceworkflowowner
NameDescription
new_workflow_ownerThe id of the user who will become the new workflow owner, in the format user:{id}. For example, user:6014.
Email Workflow Participants: emailparticipants
Section link for Email Workflow Participants: emailparticipants
NameDescription
email_recipientsA comma-delimited list of email recipients or groups, in the format user:{user_id} and group:{group_label}. For example, user:1082,user:4802,group:incompleteTaskOwners,user:3582. To find available {group_label}s, Retrieve Details for emailparticipants. If a user is not a potential recipient based on their task status, the user will not receive an email.
email_messageThe body of the email message to send to users. Maximum 5,000 characters.
send_copy_to_selfSet to true to send a copy of the email to the authenticated user. If omitted, defaults to false.
curl -X POST -H "Authorization: {SESSION_ID}" \ -H "Content-Type: application/json" \ https://myvault.veevavault.com/api/v22.1/objects/objectworkflows/801/actions/cancel
{ "responseStatus": "SUCCESS" }