Skip to main content
PUT
/
api
/
v1
/
schedules
/
{uuid}
Update a schedule
curl --request PUT \
  --url https://{subdomain}.mihu.ai/api/v1/schedules/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "appointment",
  "color": "<string>",
  "availability_type_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "ai_agents": [
    "<string>"
  ],
  "human_agents": [
    "<string>"
  ],
  "custom_questions": [
    {
      "name": "Reason for visit",
      "type": "text",
      "required": false,
      "description": "Optional helper text"
    }
  ]
}
'

Authorizations

Authorization
string
header
required

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

Path Parameters

uuid
string<uuid>
required

Body

application/json
name
string
type
string
Example:

"appointment"

color
string
availability_type_uuid
string<uuid>
ai_agents
string[]
human_agents
string[]
custom_questions
object[]

Questions asked during booking. type defaults to 'text' and required to false when omitted.

Response

200

Schedule updated successfully