Skip to main content
POST
/
api
/
v1
/
availability-types
Create a new availability type
curl --request POST \
  --url https://{subdomain}.mindhunters.ai/api/v1/availability-types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Consultation",
  "value": "consultation",
  "description": "Patient consultation",
  "enable_appointments": true,
  "default_duration": 60,
  "buffer_time": 10,
  "require_approval": true
}
'

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Body

application/json
name
string
required
Example:

"Consultation"

value
string
Example:

"consultation"

description
string
Example:

"Patient consultation"

enable_appointments
boolean
Example:

true

default_duration
integer
Example:

60

buffer_time
integer
Example:

10

require_approval
boolean
Example:

true

Response

201

Availability type created successfully