Skip to main content
POST
Create a treatment

Authorizations

Authorization
string
header
required

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

Headers

X-Tenant
number
required

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

Body

application/json
name
string
required

Treatment name.

Maximum string length: 255
price
number
required

Treatment price.

Required range: x >= 0
tax_rate
enum<integer>
required

Tax rate (KDV).

Available options:
0,
1,
10,
20
session
integer
required

Number of sessions.

Required range: x >= 1
is_active
boolean
required

Active status.

group_id
integer | null

Treatment group identifier (must belong to current tenant).

description
string | null

Treatment description.

Maximum string length: 65535
extra_info
object

Extra information as associative key-value pairs.

Example:
keywords
string[] | null

Search keywords for the treatment.

A keyword string.

Maximum string length: 100
sessions
object[] | null

Treatment sessions plan.

Response

success
string
required
data
TreatmentResource · object
required