Create a user

Create a user from a customer.

Request

POST https://api.nexway.store/iam/users

Request body

The request body takes a complete User resource, containing the following writable properties:

{
    "email": "string",
    "firstName": "string",
    "lastName": "string",
    "password": "string",
    "status": "string",
    "userName": "string"
}

Properties

Name Type Description Additional
email string

User email

firstName string

User first name

lastName string

User last name

password string

password

status string

Possible values are:

  • ENABLED
  • DISABLED
Optional
userName string

Username

Authorisation

You need to have a valid JWT to access to this API. Please read JWT Authentication.

This request requires the use of one of following authorisation methods: OAuth2.

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
201 Created

Success

success
401 Unauthorized

Unauthorized

403 Forbidden

Forbidden

404 Not Found

Not Found

500 Internal Server Error

Failure

Example

{
    "email": "test@gmail.com",
    "firstName": "john",
    "id": "a0253398-b0c5-4c2d-a15f-bd97ea4be608",
    "lastName": "Doe",
    "password": "XdefH!E",
    "token": "dzddz747d8za74d4za4dza4d4da",
    "userName": "jdoe"
}

Explore this API

user

user

Request Content-Type
Response Content-Type

Choose an authorisation method:

Access Token Access token to be used for request
Try it out!