AppResellerAccount

Create a new user in a company linked to the Reseller company.

post/appReseller/v1/users

Request

Query parameters

context'RESELLER' | 'RESELLER_MANAGER' required

Request body

createdByCompanyIdstring

Reseller's company ID

companyIdstring

New user's company ID

externalIdstring

New user's external ID (must be unique)

emailstring

New user's email (must be unique)

firstNamestring

New user's First Name

lastNamestring

New user's Last Name

Example request

{
  "createdByCompanyId": "386626c0-53e2-0000-0000-4a720bb5d000",
  "companyId": "4c00cad1-f741-0zf6-bb00-0000e73cec00",
  "externalId": "01",
  "email": "user@appdirect.com",
  "firstName": "James",
  "lastName": "Smith"
}

Response

Success

idstring

User ID

companyIdstring

Current company ID

emailstring

Email address

firstNamestring

First name

lastNamestring

Last name

createdOnnumber

User creation date, in timestamp format

activatedboolean

Indicates whether user is activated

invitationRequiredboolean

Indicates whether the user requires an invitation

enabledboolean

Indicates whether the user is enabled

Example response

{
  "id": "6d375008-3b19-4cb8-bbb9-dcd9fce99432",
  "companyId": "460fad0d-19e2-4eec-a756-59c15dc7a56a",
  "email": "test4@yopmail.com",
  "firstName": "user4",
  "lastName": "user4",
  "createdOn": 1461321550000,
  "activated": false,
  "invitationRequired": false,
  "memberships": [
    {
      "company": {
        "id": "460fad0d-19e2-4eec-a756-59c15dc7a56a",
        "externalId": "external11",
        "name": "Company3",
        "createdOn": 10242018,
        "phone": "50505054"
      },
      "enabled": true
    }
  ]
}

Changes

    • breaking

      the request's body type changed from no type to object

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status