| POST | /users | Create a new External User |
|---|
"use strict";
export class CreateUserResponse {
/** @param {{userId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Unique Identifier of the User created in Booster */
userId;
}
export class CreateUser {
/** @param {{email?:string,firstName?:string,lastName?:string,culture?:string,countryId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description User E-mail */
email;
/**
* @type {string}
* @description User First Name */
firstName;
/**
* @type {string}
* @description User Last Name */
lastName;
/**
* @type {string}
* @description User Culture */
culture;
/**
* @type {string}
* @description Country Id */
countryId;
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /users HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
email: String,
firstName: String,
lastName: String,
culture: String,
countryId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
userId: 00000000000000000000000000000000
}