Skip to main content

PUT /users/:uuid/status

Updates the availability and/or a users' custom status.

Required Parameters

ParameterTypeDescription
uuidstringThe user uuid

Optional Parameters

ParameterTypeDescription
availablebooleanUser is available (true) or away (false)
custom_status_uuidstringThe uuid of a custom status
info

You can update only the user's availability, only their custom status, or both in the same request.

caution

Ensure that a custom_status already exists in your account before passing them.

Similarly, for the user's uuid, use a valid one associated to a user in your account.

Example Request

curl -X PUT "https://api.callbell.eu/v1/users/414a6d692bd645ed803f2e7ce360d4c8/status" \
-H "Authorization: Bearer test_gshuPaZoeEG6ovbc8M79w0QyM" \
-H "Content-Type: application/json" \
-d '{
"available": false,
"custom_status_uuid": "0d6041a2-8b88-49ec-a99b-a88a078a16c1"
}'

Response

ParameterTypeDescription
user_statusstring{}The user status that has been updated
custom_statusstring{}The custom status of the user
idstringThe custom status' id
namestringThe custom status' name
last_updated_atstringThe last update date of the user's custom status
appearancestring{}The user's appearance
availablebooleanThe user's availability
appearancestring{}The user's appearance
last_updated_atstringThe user appearance's last update date

Example Response

response.json
{
"user_status": {
"custom_status": {
"id": "0d6041a2-8b88-49ec-a99b-a88a078a16c1",
"name": "Vacationing",
"last_updated_at": "2024-11-22T21:29:43.311+01:00"
},
"appearance": {
"available": false,
"last_updated_at": "2024-11-26T20:14:40.649+01:00"
}
}
}