Skip to main content
PUT
/
api
/
v1
/
accounts
/
{userId}
Update an account.
curl --request PUT \
  --url https://api.revong.com/api/v1/accounts/{userId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "version": 123,
  "name": "<string>",
  "surname": "<string>",
  "mail": "<string>",
  "phone": "<string>",
  "ownerId": "<string>",
  "ownerType": "USER",
  "metaData": {},
  "advancedData": {}
}
'

Authorizations

Authorization
string
header
required

Bearer token with Platform JWT token or API Key.

Path Parameters

userId
string
required

Body

application/json
version
number
required

You must provide current version.

name
string

You can to provide name of the user.

surname
string

You can to provide surname of the user.

mail
string

Corporate email of the user (must be valid).

phone
string

You can to provide phone number of the user (must be valid), it should include region e.g. +48...

ownerId
string

You can provide owner of the group, required if ownerType is assigned.

ownerType
enum<string>

Owner type.

Available options:
USER,
GROUP
metaData
object
advancedData
object

Response

OK.