Skip to main content
POST
Create, update, or delete a user

Authorizations

Authorization
string
header
required

All API requests must include a valid Bearer token in the Authorization header. Tokens are 64-character SHA-256 session hashes issued by the PropOps authentication system.

Example:

Body

application/json
first_name
string
required
Example:

"User_001"

last_name
string
required
Example:

"Surname_001"

email
string<email>
required
Example:

"user001@example.com"

password
string<password>
required
Example:

"S3cureP@ssword!"

account_type_id
integer
required

1=Staff, 2=Agent, 3=Landlord, 4=Tenant, 5=Contractor

Example:

1

csrf_token
string
required
Example:

"abc123def456"

phone
string | null
Example:

"07700000001"

branch_id
integer | null
Example:

1

role_id
integer | null
Example:

2

Response

User updated/actioned

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"