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

Request

  • Base URL
    https://app.360learning.com
  • URL
    https://app.360learning.com/api/v2/users/{userId}/custom-fields/values
  • Auth
    OAuth 2
    Client credentials
    Token URL: /api/v2/oauth2/token

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"
  }
]

Changes

No recorded changes to this operation across all 2 revisions of this API.