v1

latestOpenAPI 3.1.02026-08-04164270844.7 KB
Users

Replace a user custom fields values

🔑

Required OAuth scope: users:write.

Replaces a user custom fields values given its unique ID.

put/api/v2/users/{userId}/custom-fields/values

Path parameters

userIdstring ObjectId required
Example:507f1f77bcf86cd799439011

The unique ID of the user.

Headers

360-api-version'v2.0' required

The version of the API.

Request body

Example request

{
  "customValues": [
    {
      "customFieldId": "507f1f77bcf86cd799439011",
      "value": "US"
    }
  ]
}

Response

Returns the updated user custom values.

customFieldIdstring ObjectId required

The unique ID of the custom field.

type'string' | 'date' required

The type of the custom field.

Example response

[
  {
    "customFieldId": "507f1f77bcf86cd799439011",
    "value": "US"
  }
]