Skip to main content
PUT
/
api
/
admin
/
users
/
bulk-status
Bulk-set the status of multiple users
curl --request PUT \
  --url https://pria.praxislxp.com/api/admin/users/bulk-status \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "ids": [
    "<string>"
  ]
}
'
{
  "success": true,
  "updated": 123,
  "skipped": [
    {
      "id": "<string>",
      "reason": "<string>"
    }
  ]
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
ids
string[]
required

User ids to update (max 500).

Maximum array length: 500
status
enum<string>
required
Available options:
active,
inactive

Response

Bulk update applied

success
boolean
status
enum<string>
Available options:
active,
inactive
updated
integer
skipped
object[]