Bulk Actions: Collaborators
Perform actions on multiple collaborators at once, including status changes, program enrollment, and signup emails.
Last updated: October 26, 2026
Bulk Actions
POST /siren/v1/collaborators/bulk
Performs an action on multiple collaborators at once.
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | One of: activate, reject, deactivate, restore, delete, permanent_delete, addToProgram, removeFromProgram, addToDistributor, removeFromDistributor, sendSignupEmail |
ids | integer[] | Yes | Array of collaborator IDs to act upon |
programId | integer | Conditional | Required when action is addToProgram or removeFromProgram |
distributorId | integer | Conditional | Required when action is addToDistributor or removeFromDistributor. Missing, it answers 400, and an unknown distributor answers 404 |
Action Behaviors:
| Action | Effect |
|---|---|
activate | Sets status to active. Each applicant it approves gets the approved email once |
reject | Sets status to rejected. Each unconfirmed or pending applicant it declines gets the declined email once |
deactivate | Sets status to inactive |
restore | Sets status to inactive (restores from trash for review) |
delete | Sets status to deleted (soft delete) |
permanent_delete | Permanently removes records from the database. If money is still owed to any collaborator in the list, nothing is deleted and it answers 422 with the code collaborator_deletion_refused. Every record must also be in the Trash, or it answers 409. The money check runs first |
addToProgram | Enrolls collaborators in the specified program |
removeFromProgram | Removes collaborators from the specified program |
addToDistributor, removeFromDistributor | Adds collaborators to, or removes them from, a distributor |
sendSignupEmail | Sends “Finish Setting Up Your Account” to each collaborator with no WordPress account, while WordPress registration is open. affected counts the emails sent, and skipped collaborators aren’t counted. A failed send answers 502, with signup_email_failed as the error’s context.type |
ids holds at most 500 ids. More answers 400 with “ids can hold at most 500 ids per request. Send the rest in another request.” and processes none of them. An id that isn’t a positive whole number answers 400 with “ids must contain only positive whole numbers.” A missing ids, or one that isn’t a list, fails validation first and answers in the validation shape.
IDs that don’t exist, or that sit outside your access, are silently skipped. For a status action, affected also counts a collaborator whose status already matched. Datastore errors on individual records are logged but do not halt processing of remaining IDs.
Example Request:
{
"action": "addToProgram",
"ids": [7, 12, 19],
"programId": 3
}
Example Response:
{
"success": true,
"affected": 3
}