Skip to main content
POST
/
appointments
Criar agendamento
curl --request POST \
  --url https://juiywycqytekaffjcbfa.supabase.co/functions/v1/api-v1/appointments \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "title": "<string>",
  "start_time": "<string>",
  "end_time": "<string>",
  "customer_name": "<string>"
}
'
{
  "success": true,
  "data": {
    "appointment": {
      "id": "<string>",
      "title": "<string>",
      "start_time": "<string>",
      "end_time": "<string>",
      "status": "<string>",
      "customer_name": "<string>"
    }
  }
}

Authorizations

x-api-key
string
header
required

Autenticação por chave de API.

Body

application/json
title
string
required
start_time
string
required
end_time
string
required
customer_name
string

Response

201 - application/json

Agendamento criado

success
boolean
data
object