Update an account.
ROLES: USER_WRITE,USER_ADMIN USER: true SERVICE ACCOUNT: true
curl --request PUT \
--url https://api.revoengine.com/api/v1/accounts/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": 123,
"name": "<string>",
"mail": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 123, name: '<string>', mail: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/accounts/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/accounts/{userId}"
payload = {
"version": 123,
"name": "<string>",
"mail": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Body
You must provide current version.
Service-account management ACL patch.
Show child attributes
Show child attributes
Service-account execution membership patch.
Show child attributes
Show child attributes
You can to provide name of the user.
You can to provide surname of the user.
Corporate email of the user (must be valid).
You can to provide phone number of the user (must be valid), it should include region e.g. +48...
You can provide owner of the group, required if ownerType is assigned.
Owner type.
USER, GROUP Replacement account metadata. Maximum 16 KiB of UTF-8 JSON and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use.
Replacement account metadata. Maximum 16 KiB of UTF-8 JSON and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use.
Extended account data: maximum 16 KiB of UTF-8 JSON and 64 top-level keys.
Extended account data: maximum 16 KiB of UTF-8 JSON and 64 top-level keys.
Response
OK.
curl --request PUT \
--url https://api.revoengine.com/api/v1/accounts/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": 123,
"name": "<string>",
"mail": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 123, name: '<string>', mail: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/accounts/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/accounts/{userId}"
payload = {
"version": 123,
"name": "<string>",
"mail": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)
