Create a bulk user update job.
curl --request POST \ --url https://auth.example.com/api/admin/jobs/users/bulk-update \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fields": [ "status" ], "filter": { "lifecycle_state": "active" }, "values": { "status": "suspended" }, "dry_run": true, "result_delivery": "auto" }'Queues a users/bulk-update job after validating fields, values, optional filter, dry-run mode, batch size, and result delivery. The response includes affected user count and estimated completion. Each field sets the account status, so one field per job; each account takes it as the job’s transition, versioned when the job is created, so a status change made after that is never overwritten (such accounts count as failed).
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”User_type=end_user filters include both guest and registered humans. Use registration_state=guest or registration_state=registered to narrow the filter. Registration state is read-only and cannot be included in update fields.
object
The one status field to set (each sets the account status).
object
Registration state based on the committed guest lifecycle phase.
End_user includes both guest and registered humans.
object
Example
{ "fields": [ "status" ], "filter": { "lifecycle_state": "active" }, "values": { "status": "suspended" }, "dry_run": true, "result_delivery": "auto"}Responses
Section titled “ Responses ”Bulk user update job accepted response.
object
Example
{ "status": "pending"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}