Skip to main content
POST
/
workspaces
/
{workspace}
/
users
Add User to Workspace
curl --request POST \
  --url https://lancepilot.com/api/v3/workspaces/{workspace}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'name=<string>' \
  --form [email protected] \
  --form 'password=<string>' \
  --form 'confirm_password=<string>' \
  --form 'timezone=<string>' \
  --form status=true \
  --form client=true \
  --form avatar=@example-file
{
  "status": 201,
  "message": "Resource created successfully.",
  "data": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace
string<uuid>
required

ID of the workspace.

Body

multipart/form-data

User creation payload (multipart/form-data).

name
string
required

Required. Must pass 'valid_name'.

Maximum length: 50
email
string<email>
required

Required. Must be unique.

password
string
required

Required.

Required string length: 6 - 255
confirm_password
string
required

Required. Must match password.

timezone
string
required

Required. Must be a valid timezone.

status
boolean
required

Required.

avatar
file | null

Image file (≤ 1MB).

client
boolean

Required for partner workspace.

Response

status
integer
required
Example:

201

message
string
required
Example:

"Resource created successfully."

data
object
required

Created resource data.