Create or update a user

PUT
/buyers/{buyerID}/users/{userID}

Description

If an object with the same ID already exists, it will be overwritten.

Roles

At least one of the roles below is required to access this endpoint

FullAccess
BuyerUserAdmin

Parameters

NameTypeDescriptionDefault (ordered by priority)
buyerIDstringID of the buyer.---
userIDstringID of the user.---

Request Body

PropertyTypeFormatMax Length
IDstring------
Username
Required
string---100 characters
Passwordstringpassword---
FirstName
Required
string---100 characters
LastName
Required
string---100 characters
Email
Required
string---200 characters
Phonestring---100 characters
TermsAcceptedstringdate-time---
Active
Required
boolean------
xpobject------

Response Body

PropertyTypeFormatMax Length
IDstring------
Usernamestring---100 characters
Passwordstringpassword---
FirstNamestring---100 characters
LastNamestring---100 characters
Emailstring---200 characters
Phonestring---100 characters
TermsAcceptedstringdate-time---
Activeboolean------
xpobject------
AvailableRoles
Read Only
array------
DateCreated
Read Only
stringdate-time---
PasswordLastSetDate
Read Only
stringpassword---