API

Modifică operatorul

POST/api/crm/v2/operators.update_operatorv2
operationId: operators.updateOperator

Modifică operatorul după id: e-mail pentru notificări, telefon, telefon public, flag SMS și nivel de acces.

Autorizare

api-token + language + role

Parametri de interogare

branch_idinteger

Exemplu: 8778

Corpul cererii application/json

object
idintegerobligatoriu

Exemplu: 1

firm_user_idinteger

Exemplu: 1

email_for_notificationsarray of stringobligatoriu

E-mail pentru notificări, maximum 255 de caractere

phone_format_idinteger (PhoneFormatId)

Codul țării: 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)

Exemplu: 1

phone_numberinteger

Exemplu: 9999999999

public_phonestring

Exemplu: +7 (999) 999-99-99

phone_sms_enabledboolean

Exemplu: true

permissionstringobligatoriu

Acces la comenzi: all — toate comenzile, only — comenzile atribuite acestui operator

Valori:allonly

Răspunsuri

OK

object (Response)
statusstringobligatoriu

Valori:successerror

Exemplu: success

Una dintre opțiuni
object

Informații despre eroare

errorobjectobligatoriu
codeintegerobligatoriu

Cod eroare

variablesobject
descriptionstringobligatoriu

Descrierea erorii