Skip to main content
POST
Create a doctor

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

Doctor's name.

Maximum string length: 255
email
string<email>
gerekli

Doctor's email address.

Maximum string length: 255
set_password
boolean | null

Whether an explicit password is provided. When false, or when no password is sent, a random password is generated and a set-password link is emailed.

password
string | null

Doctor's password. Required when set_password is true; ignored when set_password is false.

Minimum string length: 8
password_confirmation
string | null

Doctor's password confirmation. Must match the password field.

Minimum string length: 8
phone
string | null

Doctor's phone number.

Maximum string length: 20
title
enum<string> | null

Doctor's title.

Mevcut seçenekler:
Uzm. Dr.,
Dr.,
Prof. Dr.,
Doç. Dr.,
Arş. Gör.,
Öğr. Gör.,
null
blood_group
enum<string> | null

Doctor's blood group.

Mevcut seçenekler:
ARh+,
ARh-,
BRh+,
BRh-,
ABRh+,
ABRh-,
ORh+,
ORh-,
null
Maximum string length: 10
language
string[] | null

Doctor's language preferences.

avatar_url
string | null

Doctor's avatar URL.

Maximum string length: 1000
is_active
boolean | null

Doctor's active status.

bio
string | null

The biography or short description.

Maximum string length: 1000
preferred_invoice_account_id
integer | null

The invoice account preselected when this doctor's sales are invoiced. Must belong to the tenant.

Gerekli aralık: x >= 1
treatment_ids
integer[] | null

An array of treatment IDs.

A treatment ID.

Gerekli aralık: x >= 1

Yanıt

The response is of type object.