Remove Participants from Multiple Workflows
Remove members from participant groups across multiple active workflows in a single asynchronous job. Vault starts a job and returns a job_id. Use this ID to retrieve per-workflow results with Retrieve Remove Participants from Multiple Workflows Results. Maximum 500 workflows per request.
Per-workflow eligibility is validated inside the job. Ineligible workflows are skipped rather than failing the whole job, and their outcomes appear in the results. For example, ineligible workflows include inactive workflows, or when attempting to remove an auto-managed group.
Removing a participant changes participant-group membership only. It does not cancel or reassign tasks already assigned to (or accepted by) that user, those tasks remain assigned. The user can no longer accept available tasks in the group. To end a user's already accepted, in-progress task, use Cancel Task (canceltasks) or Reassign Task (reassigntasks) with the Initiate Workflow Actions on Multiple Workflows endpoint.
/api/{version}/object/workflow/actions/removeparticipantsHeaders
Section link for Headers| Name | Description |
|---|---|
Content-Type | application/json |
Accept | application/json |
Body Parameters
Section link for Body Parameters| Name | Description |
|---|---|
itemsrequired | An array of removal items. Each item must be a unique (workflow_id, participant_group_name) pair. |
items[].workflow_idrequired | The active workflow instance ID for this item. |
items[].participant_group_namerequired | The participant group to update on this workflow. |
items[].user_idsconditional | Vault user IDs to remove. Required if group_ids is omitted or empty. |
items[].group_idsconditional | Vault user group IDs to remove. Required if user_ids is omitted or empty. |
Request
Section link for Requestcurl -X POST -H "Authorization: {AUTH_VALUE}" \
-H "Content-Type: application/json" \
https://myvault.veevavault.com/api/v26.3/object/workflow/actions/removeparticipants \
--data '{
"items": [
{ "workflow_id": 2903, "participant_group_name": "approvers__c", "user_ids": [1024, 2055], "group_ids": [710] },
{ "workflow_id": 2904, "participant_group_name": "approvers__c", "user_ids": [1024, 2055], "group_ids": [710] }
]
}'Response
Section link for Response{
"responseStatus": "SUCCESS",
"data": {
"job_id": 93601,
"url": "/api/v26.3/services/jobs/93601",
"results_url": "/api/v26.3/object/workflow/actions/removeparticipants/results/93601"
}
}Response Details
Section link for Response DetailsOn SUCCESS, Vault returns a job_id. You can poll the job status with Retrieve Job Status, and once complete, obtain results from Retrieve Remove Participants from Multiple Workflows Results.