Skip to main content

Update User Account Status

PUT /api/v1/users/{userId}/account/{status}

Description

Update the status of a user account.

Path Parameters

NameTypeDescription
userIdstringThe user ID (path)
statusstringThe account status (path), Available values: ACTIVE, DISABLE, DEACTIVATE, DELETE

Request Body

  • Content Type: application/json
{
"comment": "string",
"password": "string"
}

Response Code: 200 - OK

Description

Account status updated successfully.

Body

{
"comment": "Please disable the account temporarily.",
"password": "examplePassword123"
}

🔑 Authentication bearer

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PUT \ 
--url /api/v1/users/{userId}/account/{status} \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!