Skip to main content
POST
/
workspaces
/
{workspace}
/
users
/
{user}
Update User in Workspace
curl --request POST \
  --url https://lancepilot.com/api/v3/workspaces/{workspace}/users/{user} \
  --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": 200,
  "message": "Resource updated 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.

user
integer
required

ID of the user.

Body

multipart/form-data

User update payload (multipart/form-data).

name
string
required

Must pass 'valid_name'.

Maximum length: 50
email
string<email>
required

Must be unique.

timezone
string
required

Must be a valid timezone.

status
boolean
required
avatar
file | null

Image file (≤ 1MB).

password
string

Optional. If provided, will update password.

Required string length: 6 - 255
confirm_password
string

Must match password if password is provided.

client
boolean

Required for partner workspace.

Response

status
integer
required
Example:

200

message
string
required
Example:

"Resource updated successfully."

data
object
required

Updated resource data.