Update an existing operator role
x-ms-visibility: "important"
Update an operator role and modify assigned permissions.
Path Parameters
roleId int64 required
The ID of the operator role to be updated.
application/json
Request Body required
Operator role details to update.
name string
permissions string[]
Responses
- 200
- 400
- 401
- 500
Updated operator role details.
application/json
Schema
Example (from schema)
Schema
id int64
name string
permissions string[]
Possible values: [SystemAdmin, GlobalAdmin, SiteAdmin, ReadTariffs, WriteTariffs, ReadChargers, WriteChargers, ReadSites, WriteSites, OperateChargers, UpdateChargerFirmware, ReadDrivers, WriteDrivers, ReadSessions, ReadTags, WriteTags, ReadPaymentTerminals, WritePaymentTerminals, ReadIntegrations, WriteIntegrations, ReadBilling, WriteBilling, ReadInvoicing, ReadDLM, WriteDLM, ReadExpress, WriteExpress]
{
"id": 0,
"name": "string",
"permissions": [
"SystemAdmin"
]
}
Details of the validation error.
application/json
Schema
Example (from schema)
Schema
type string
title string
status int32 nullable
detail string
instance string
extensions object
property name* object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"extensions": {}
}
User not authorized.
An unexpected error occurred.
application/json
Schema
Example (from schema)
Schema
errorCode string
message string
errorNumber int32
helpLink string
{
"errorCode": "string",
"message": "string",
"errorNumber": 0,
"helpLink": "string"
}
Loading...