Skip to content

Update Setting

Update user settings.

Endpoint

http
PATCH /api/v1/user/settings

Parameters

Body parameters

ParameterTypeRequiredDescription
namestringyesName of the attribute you are going to update. Allowed attributes are: - color (HEX format) - first_name - last_name - address - state - city - postal_code - country (ISO 3166-1 alpha-2 format) - phone_number - timezone (1.0, 2.0, 3.0...) - emoji_type (twemoji
valuestringintegeryes

Request example

sh
curl --location --request PATCH 'https://files.ro/api/v1/user/settings' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
--data-raw '{
  "name": "first_name",
  "value": "Jane"
}'

Response

json
{
  "type": "success",
  "message": "The first_name was successfully updated."
}
json
{
  "type": "error",
  "message": "You typed the invalid 'name' name parameter."
}
json
{
  "type": "error",
  "message": "Unsupported language locale 'en'."
}