/user/replaceProfile

Prev Next
Post
/user/replaceProfile

Replaces all attribute values for a specific user. All attribute values that are transmitted with the method are added and replace any existing values.

Any currently existing attribute values that are not found in the API call are deleted (except for Member attributes).
Request body example:

[
{"name" : "user.firstname", "value" : "John"},
{"name" : "user.lastname", "value" : "Smith"}
]


Request body example - erase mobile number:
[
{"name" : "user.MobileNumber", "value" : null}
]


Maximum character lengths for standard attribute values:
  • FirstName: 50
  • LastName: 50
  • Nickname: 20
  • ZipCode: 10
  • Identifier: 2000
  • Photo: 2000
Other standard attributes (Email, MobileNumber, ISOCountryCode, ISOLanguageCode, TimeZone, Title, DateOfBirth) are validated by format/enum, not by length. Note that Email is stored in a column of length 129.

Custom attribute values are limited to 2000 characters.

Values exceeding these limits are rejected with HTTP 400 (INVALID_PARAMETER); during contact import, oversized values are silently truncated.
Query parameters
userId
integer (int64)

ID of the user

Body parameters
Array of object
object
name
string
value
string
Responses
204
400

Parameter 'userID' is mandatory, but missing or incorrect./ user with the given id does not exist.

404

Not Found