Update other user account data

Circularo REST API example

Updates other user account data.

Step 1 - Sign administrator in

Sign administrator user in.

Endpoint

POST - /login

Example

/login

Content-Type: application/json

{
  "name": "john.doe@circularo.com",
  "password": "!123.my_strongPASSWORD!",
  "tenant": "default"
}

Response

Note following properties in response object:

  • token - In response object at position ‘token‘. It may have value of “tnMbQiKg4fBL6ornt4fmGoZKP7j6KdJxuS3sny1EQSjZzVu1O9NMb14HUYscQ9we“.

Step 2 - Update user data

Updates other user account data.

Endpoint

PUT - /users/:id

Example

/users/mary.griffin@circularo.com?token=tnMbQiKg4fBL6ornt4fmGoZKP7j6KdJxuS3sny1EQSjZzVu1O9NMb14HUYscQ9we

Content-Type: application/json

{
  "phone": "+96654321",
  "role": "Tester",
  "configuration": {
    "language": "hi"
  }
}

Step 3 - Sign out (Optional)

Sign user out.

Endpoint

GET - /logout

Example

/logout?token=tnMbQiKg4fBL6ornt4fmGoZKP7j6KdJxuS3sny1EQSjZzVu1O9NMb14HUYscQ9we