Update of a user. VMS Billing API
User update
{
"login": "test@mail.com",
"password": "qweasdzxc",
"status": "active",
"billing_info": {
"billing_id": "123123123",
"billing_extra": []
},
"billing_properties": [
{
"type": "phone",
"value": "+80283289362"
}
],
"permissions_to_attach": [
"archives-show",
"archives-download"
],
"permissions_to_detach": [
"archives-preview-download"
]
}
PATCH /api/v1/billing/user/manage |
Parameters
string
login – user login
string
password – password
string
status – user status
array
billing_info - Additional information about a user received from billing
string
properties, [value] - property value
array
permissions_to_attach – List of permissions to attach
array
permissions_to_detach – List of permission names to detach
200 |
Returns the user object
JSON
|
422 |
Returns a JSON object with an error. See details in the Validation article.
JSON
|