Skip to main content
PATCH
/
v1
/
user
/
bulk-status-update
Update multiple user statuses
curl --request PATCH \
  --url https://staging.api.us.aptlydone.com/auth/v1/user/bulk-status-update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "userIds": [
    "58760369-22b0-4b5d-a62b-6f3ef959cc31"
  ],
  "status": "ACTIVE"
}'
{
  "statusCode": 200,
  "timestamp": "2025-06-25T06:16:48.664Z",
  "message": "Success",
  "data": {
    "total": 10,
    "successful": 8,
    "failed": 2
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
userIds
string<uuid>[]
required

Array of user IDs to update

Example:
["58760369-22b0-4b5d-a62b-6f3ef959cc31"]
status
enum<string>
required

Status to set for all users

Available options:
ACTIVE,
INACTIVE,
INVITED,
DELETED

Response

200 - application/json

Users status updated successfully

statusCode
number
required

HTTP Status code

Example:

200

timestamp
string
required

Timestamp of the response

Example:

"2025-06-25T06:16:48.664Z"

message
string
required

Response message

Example:

"Success"

data
object
required

Response data