PUT
/
users
/
{user_id}
/
custom-attributes
/
{custom-attribute_id}
Update a user custom attribute
curl --request PUT \
  --url http://localhost:3001/portal-api/users/{user_id}/custom-attributes/{custom-attribute_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "Value": "true"
}'
{
  "Value": "true",
  "ID": 1,
  "CustomAttribute": {
    "Name": "Terms of use",
    "Identifier": "terms-of-use",
    "Type": "Boolean",
    "Behaviour": "Edit and view",
    "AddToKeyMetadata": true,
    "Required": true,
    "ShowOnSignUp": true,
    "WriteOnceReadMany": true
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

user_id
integer
required

UID of user

Example:

1

custom-attribute_id
integer
required

UID of the custom attribute

Example:

1

Body

application/json
Value
string

custom attribute value

Example:

"true"

Response

OK

Value
string

custom attribute value

Example:

"true"

ID
integer

UID of this user custom attribute

Example:

1

CustomAttribute
object