Skip to content

Create new user

POST
/users/
curl --request POST \
--url https://api.occulights.com/api/v1/users/ \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "email": "john.doe@example.com", "firstName": "John", "lastName": "Doe", "orgId": "8089bb74-fd69-411b-8fd7-ad92a75fdf56", "password": "example" }'

Creates a new user for the authenticated tenant

User object

Media typeapplication/json
object
email
string

Example

john.doe@example.com
firstName
string

Example

John
lastName
string

Example

Doe
orgId
string

Example

8089bb74-fd69-411b-8fd7-ad92a75fdf56
password

Let’s re-add this when we differentiate between email and username Username string json:"username"

string

Created

Media typeapplication/json
object
email
string
firstName
string
lastName
string
orgId
string
password

Let’s re-add this when we differentiate between email and username Username string json:"username"

string

Example

{
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"orgId": "8089bb74-fd69-411b-8fd7-ad92a75fdf56"
}

Invalid input

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Unauthorized

Media typeapplication/json
string

Example generated

example

User already exists

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Internal Server Error

Media typeapplication/json