Skip to main content

Update User

Description: To update the details of a user, a HTTP PUT request is made to the URL with the user ID and session token.

Method: PUT

URI: /users/user_id

URI Parameters

  • user_id: The ID of the user.

Headers: Authorization: Third party based authorization header

Returns

FieldTypeDescription
userUserA user object.

Example

Request
curl https://app-api.reiformslive.com.au/users \
--request PUT \
--header "content-type: application/json" \
--header "Authorization: Basic YTlkOWIwYItNGY4Yi1hYTQxLTI5NzZmMTcyZmEyMQ==" \
--data '{
"given_name":"Jack",
"surname":"Doe",
"email":"jackd@example.com"
}'
Response
{
"id": 1
"agency_id": 1,
"member_number": "4734",
"realtor_number": "7848734",
"given_name": "Jack",
"surname": "Doe",
"email": "jackd@example.com",
"mobile": "",
"principal": true,
"default_private": false,
"active": true,
"deleted": false,
"created": 1354247862,
"updated": 1354686568
}