Skip to main content
PUT
Update a salesperson

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Yol Parametreleri

id
integer
gerekli

The salesperson identifier

Gövde

application/json
name
string

Salesperson's name.

Maximum string length: 255
email
string<email>

Salesperson's email address.

Maximum string length: 255
phone
string | null

Salesperson's phone number.

Maximum string length: 20
language
enum<string>[] | null

Salesperson's language preferences.

A language preference value.

Mevcut seçenekler:
Turkish,
English,
Other
avatar_url
string | null

Salesperson's avatar URL.

Maximum string length: 1000
is_active
boolean | null

Salesperson's active status.

active_lead_cap
integer | null

Maximum number of active leads the salesperson may hold at once. Ignored when is_lead_cap_unlimited is true.

Gerekli aralık: 0 <= x <= 100
is_lead_cap_unlimited
boolean | null

Whether the salesperson may hold an unlimited number of active leads. When true, active_lead_cap is not enforced.

treatment_ids
integer[] | null

An array of treatment IDs the salesperson handles.

A treatment ID.

Gerekli aralık: x >= 1
work_hours
object[] | null

The weekly working hours, exactly one row per day from monday to sunday.

Required array length: 7 elements

Yanıt

success
string
gerekli
data
SalespersonResource · object
gerekli