Skip to main content
POST
Create a treatment

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.

Gövde

application/json
name
string
gerekli

Treatment name.

Maximum string length: 255
price
number
gerekli

Treatment price.

Gerekli aralık: x >= 0
tax_rate
enum<integer>
gerekli

Tax rate (KDV).

Mevcut seçenekler:
0,
1,
10,
20
session
integer
gerekli

Number of sessions.

Gerekli aralık: x >= 1
is_active
boolean
gerekli

Active status.

invoice_name
string | null

Invoice display name. Falls back to the treatment name when empty.

Maximum string length: 255
group_id
integer | null

Treatment group identifier (must belong to current tenant).

keywords
string[] | null

Search keywords for the treatment.

A keyword string.

Maximum string length: 100
description
string | null

Treatment description.

Maximum string length: 65535
extra_info
object

Extra information as associative key-value pairs.

Örnek:
sessions
object[] | null

Treatment sessions plan.

Yanıt

success
string
gerekli
data
TreatmentResource · object
gerekli