Create a reseller user

Creates a new reseller user.

POST/v3/resellers/{resellerId}/users
JWT
reseller:user:create

Parameters

NameTypeInDescription
resellerId*stringpath

Request Body Schema

PropertyTypeDescriptionConstraints
firstName*stringFirst name of the user. //min: 1, max: 256
lastNamestringLast name of the user.min: 0, max: 256
email*stringEmail address of the user.min: 1, format: email
role*stringRole of the user.min: 1, max: 256
companystringCompany of the user.min: 0, max: 256
organizationIdstringUnique identifier for the organization.min: 0, max: 256
allowCustomerPortalAccess*booleanAllow customer portal access.
password*stringPassword of the user.min: 8, max: 256

Request Example

{
  "firstName": "string",
  "lastName": "string",
  "email": "user@example.com",
  "role": "string",
  "company": "string",
  "organizationId": "string",
  "allowCustomerPortalAccess": true,
  "password": "stringst"
}
Triggers webhook: reseller.user.created
POST <your-webhook-url>
{
  "event": "reseller.user.created",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "email": "string",
    "role": "string",
    "twoFactorEnabled": true,
    "googleSsoEnabled": true,
    "lastLoginAt": "2019-08-24T14:15:22Z",
    "organizationId": "string",
    "organization": {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "name": "string",
      "email": "string",
      "description": "string",
      "allowedUsers": 0,
      "address": {
        "addressLine1": "string",
        "addressLine2": "string",
        "city": "string",
        "state": "string",
        "country": "string",
        "postalCode": "string"
      }
    },
    "company": "string"
  },
  "triggeredAt": "string"
}

Responses

201 Created
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "firstName": "string",
  "lastName": "string",
  "email": "string",
  "role": "string",
  "twoFactorEnabled": true,
  "googleSsoEnabled": true,
  "lastLoginAt": "2019-08-24T14:15:22Z",
  "organizationId": "string",
  "organization": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "email": "string",
    "description": "string",
    "allowedUsers": 0,
    "address": {
      "addressLine1": "string",
      "addressLine2": "string",
      "city": "string",
      "state": "string",
      "country": "string",
      "postalCode": "string"
    }
  },
  "company": "string"
}