Siren

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:

FieldTypeRequiredDescription
actionstringYesOne of: activate, reject, deactivate, restore, delete, permanent_delete, addToProgram, removeFromProgram, addToDistributor, removeFromDistributor, sendSignupEmail
idsinteger[]YesArray of collaborator IDs to act upon
programIdintegerConditionalRequired when action is addToProgram or removeFromProgram
distributorIdintegerConditionalRequired when action is addToDistributor or removeFromDistributor. Missing, it answers 400, and an unknown distributor answers 404

Action Behaviors:

ActionEffect
activateSets status to active. Each applicant it approves gets the approved email once
rejectSets status to rejected. Each unconfirmed or pending applicant it declines gets the declined email once
deactivateSets status to inactive
restoreSets status to inactive (restores from trash for review)
deleteSets status to deleted (soft delete)
permanent_deletePermanently 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
addToProgramEnrolls collaborators in the specified program
removeFromProgramRemoves collaborators from the specified program
addToDistributor, removeFromDistributorAdds collaborators to, or removes them from, a distributor
sendSignupEmailSends “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
}

Your privacy choices

Account, checkout and chat you request work without optional tracking. Choose whether to allow these other uses on this website.

You can change or withdraw your choices at any time using “Privacy choices.” We remember your choice for 180 days. Read our privacy policy.