Device Connectivity Made Easy

Focus on your product and innovation and leave communication and management to DeviceHive.

Get Started

updateCurrent

Updates an existing user.

Only administrators are allowed to update any property of any user. User-level accounts can only change their own password and data fields.

Request

HTTP Request

PUT /user/current

Authorization

Access JSON Web Token (UpdateCurrentUser)

Request Body

In the request body, supply a User resource.

Property Name

Required

Type

Description

login

No

string

User login using during authentication.

role

No

integer

User role. Available values:

  • 0: Administrator role
  • 1: Client role

status

No

integer

User status. Available values:

  • 0: The user is active
  • 1: The user has been locked out due to invalid login attempts
  • 2: The user has been disabled

password

No

string

User new password

data

No

object

User data, a JSON object with an arbitrary structure.

introReviewed

No

boolean

Indicates if user reviewed an intro.

Response

If successful, this method returns an empty response body.

Updated less than a minute ago

updateCurrent


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.