Update operator
POST
/api/crm/v2/operators.update_operatorv2 operationId:
operators.updateOperatorUpdates an operator by id: notification e-mail, phone, public phone, SMS flag, and access level.
Authorization
api-token + language + role
Query parameters
branch_idinteger
Example: 8778
Request body application/json
object
idintegerrequired
Example: 1
firm_user_idinteger
Example: 1
email_for_notificationsarray of stringrequired
E-mail for notifications, up to 255 characters
phone_format_idinteger (PhoneFormatId)
Country code: 1-🇷🇺(+7|8), 2-🇦🇿(+994|0), 3-🇧🇾(+375|80), 4-🇰🇿(+7|8), 6-🇷🇸(+381|0), 7-🇹🇷(+90|0), 8-🇺🇦(+380|0), 9-🇵🇹(+351|0), 10-🇰🇬(+996|0), 11-🇺🇸(+1), 12-🇫🇷(+33|0), 13-🇲🇩(+373|0), 15-🇪🇪(+372), 18-🇬🇪(+995), 19-🇺🇿(+998), 22-🇵🇱(+48|0), 23-🇹🇯(+992|8), 25-🇷🇴(+40|0), 44-🇨🇭(+41|0)
Example: 1
phone_numberinteger
Example: 9999999999
public_phonestring
Example: +7 (999) 999-99-99
phone_sms_enabledboolean
Example: true
permissionstringrequired
Order access: all — all orders, only — orders assigned to this operator
Values:allonly
Responses
OK
object (Response)
statusstringrequired
Values:successerror
Example: success
One of the options
object
Error details
errorobjectrequired
codeintegerrequired
Error code
variablesobject
descriptionstringrequired
Error description