Siren

Bulk Actions

Perform actions on multiple collaborators at once, including status changes, program enrollment, and signup emails.

Last updated: April 9, 2026

Bulk Actions

POST /siren/v1/collaborators/bulk

Performs an action on multiple collaborators at once.

Request Body:

FieldTypeRequiredDescription
actionstringYesOne of: activate, deactivate, restore, delete, permanent_delete, addToProgram, removeFromProgram, sendSignupEmail
idsinteger[]YesArray of collaborator IDs to act upon
programIdintegerConditionalRequired when action is addToProgram or removeFromProgram

Action Behaviors:

ActionEffect
activateSets status to active
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
addToProgramEnrolls collaborators in the specified program
removeFromProgramRemoves collaborators from the specified program
sendSignupEmailSends the signup/registration email to each collaborator (broadcasts CollaboratorAccountReady per record)

Non-existent IDs are silently skipped. 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
}