Skip to main content
PATCH
/
entity_users
/
me
Update current entity user
curl --request PATCH \
  --url https://api.sandbox.monite.com/v1/entity_users/me \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-monite-version: <x-monite-version>' \
  --data '
{
  "email": "c.peters@example.com",
  "first_name": "Casey",
  "last_name": "Peters",
  "phone": "+491729925904",
  "title": "Finance Manager"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "login": "<string>",
  "role_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "active",
  "email": "c.peters@example.com",
  "first_name": "<string>",
  "last_name": "Peters",
  "phone": "+491729925904",
  "userpic_file_id": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-monite-version
string<date>
required

Body

application/json
email
string<email> | null

The user's business email address.

Example:

"c.peters@example.com"

first_name
string | null

The user's first name.

Maximum string length: 255
Example:

"Casey"

last_name
string | null

The user's last name.

Maximum string length: 255
Example:

"Peters"

phone
string | null

The user's phone number.

Example:

"+491729925904"

title
string | null

The user's job title.

Maximum string length: 255
Example:

"Finance Manager"

Response

Successful Response

id
string<uuid>
required

A unique Monite-assigned ID of this entity user. Can be used with POST /auth/token to generate an API access token for this user.

created_at
string<date-time>
required

UTC date and time when this user was created in Monite.

updated_at
string<date-time>
required

UTC date and time when this user was last updated.

login
string
required

The username assigned to this user. Usernames must be unique within the entity.

The login value is not used by Monite but may be used by partner applications, for example, to map the users between the partner's platform and Monite.

Example:

"caseyp"

role_id
string<uuid>
required

ID of the role assigned to this user. The role defines the user's access permissions within the entity. Each user has just one role.

status
enum<string>
required

The user's status. Always active.

Available options:
active,
deleted
email
string<email> | null

The user's business email address.

Example:

"c.peters@example.com"

first_name
string

The user's first name.

Example:

"Casey"

last_name
string | null

The user's last name.

Example:

"Peters"

phone
string | null

The user's phone number.

Example:

"+491729925904"

userpic_file_id
string<uuid> | null

Unused. Reserved for future use. Currently always returns null.

Example:

null