API

Operatör ekle

POST/api/crm/v2/operators.addv2
operationId: operators.add

Bir şubede (branch_id) operatör oluşturur: bildirimler için telefon, e-posta, SMS bayrağı, genel telefon, erişim seviyesi ve isteğe bağlı olarak hesap kullanıcısına (firm_user_id) bağlama. Token otomatik olarak oluşturulur.

Yetkilendirme

api-token + language + role

Sorgu parametreleri

branch_idintegerzorunlu

Örnek: 8791

İstek gövdesi application/json

object
firm_user_idinteger

Örnek: 825

email_for_notificationsarray of stringzorunlu

Bildirimler için e-posta, en fazla 255 karakter

permissionstringzorunlu

Siparişlere erişim: all — tüm siparişler, only — bu operatöre atanan siparişler

Değerler:allonly

Örnek: all

phone_format_idinteger (PhoneFormatId) zorunlu

Ülke kodu: 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)

Örnek: 1

phone_numberintegerzorunlu

Örnek: 9939697322

phone_sms_enabledboolean

Örnek: true

public_phonestring

Örnek: 9939697323

Yanıtlar

OK

object (Response)
statusstringzorunlu

Değerler:successerror

Örnek: success

Seçeneklerden biri
object

Hata hakkında bilgi

errorobjectzorunlu
codeintegerzorunlu

Hata kodu

variablesobject
descriptionstringzorunlu

Hata açıklaması