Skip to main content

Update user profile

Updates a user profile.
Any fields not specified in the request or with null value will be left unchanged.

Path Parameters
userId int32 REQUIRED

The user id

Request Body REQUIRED

The user profile

SiteId int32

The ID of the site associated with the user.

Email string

The email address of the user.

FirstName string

The first name of the user.

LastName string

The last name of the user.

PhoneNr string

The phone number of the user.

MobilePhoneNr string

The mobile phone number of the user.

Company string

The company the user is associated with.

UserTypeId int32

UserTypeId of the user. 1 = Private, 2 = Company.

MemberId int32

The member ID of the user. Obsolote. Use CustomerGroupId instead.

CustomerGroupId int32

The Customer Group Id of the user.

Address string

The address of the user.

Address2 string

The second line of the user's address.

Address3 string

The third line of the user's address.

DoorCode string

The door code for the user's address.

PersonalId string

The personal ID of the user.

Birthyear string

The birth year of the user.

Zip string

The zip code of the user's address.

City string

The city of the user's address.

CareOf string

The care of (c/o) address of the user.

Country string

The country of the user's address. Can be a country code or a country name.

State string

The state of the user's address.

CountryId int32

The country ID of the user's address.

GenderType int32

Possible values: [0, 1, 2]

The gender of the user. Enum type with the following values: Unspecified=0, Female=1, Male=2.
0 = Unspecified
1 = Female
2 = Male

Password string

The password of the user.

Newsletter boolean

Decides whether the user should be subscribed to the newsletter.

MetaData string

Free-text field for any additional data that should be stored with the user.

Responses
200

Ok.

Schema OPTIONAL
Message string OPTIONAL

A status message for the action taken.

Details string[] OPTIONAL

Any validation messages for the data on the current action.

400

Bad request.

Schema OPTIONAL
Message string OPTIONAL

A status message for the action taken.

Details string[] OPTIONAL

Any validation messages for the data on the current action.