POST /me/calendar/events
Cria event em calendar pessoal.
- Access: Signed in
- Service:
https://api-calendar.axuz.net
Accepted authentication
sessionCookie— Sessão plena Axuz (cookie de sessão da casa). Sessão restrita é 403 enrollment_required.bearerSession— JWT de acesso da sessão em `Authorization: Bearer`.
Responde POST /me/calendar/events — só personal.
Motivo: enforçar que /me nunca crie event em calendar de team; callers que querem team scope usam /teams/{id}/.... Comportamento: valida como createEvent; CalendarOwnership rejeita team calendar (403 "não pode criar event em calendar de team") e exige owner=caller.
Entradas: JWT + JSON eventInput.
Retorno: JSON 201. Efeitos: INSERT em events.
Parameters
No parameters.
Request body
application/json · Required
| Name | Type | Required | Description |
|---|---|---|---|
calendar_id | string<uuid> | yes | |
summary | string | yes | |
description | string | null | no | |
location | string | null | no | |
dtstart | string<date-time> | yes | |
dtend | string<date-time> | yes | Deve ser >= dtstart. |
all_day | boolean | no | |
rrule | string | null | no | Validado por rrule-go antes de persistir. |
tz | string | null | no | IANA timezone name. Rejeita aliases (EST, GMT-3). '' ou nil = UTC. |
reminders | array<CalendarReminderInput> | null | no | R-007. Ausente/null/ |
{
"calendar_id": "00000000-0000-0000-0000-000000000000",
"summary": "string",
"description": "string",
"location": "string",
"dtstart": "2026-01-15T12:00:00Z",
"dtend": "2026-01-15T12:00:00Z",
"all_day": false,
"rrule": "string",
"tz": "string",
"reminders": [
{
"trigger_offset_minutes": 1,
"kind": "email"
}
]
}Responses
201
Event criado.
| Name | Type | Required | Description |
|---|---|---|---|
id | string<uuid> | yes | |
calendar_id | string<uuid> | null | no | |
calendar_name | string | no | |
calendar_color | string | no | |
team_id | string<uuid> | null | no | |
summary | string | yes | |
description | string | null | no | |
location | string | null | no | |
dtstart | string<date-time> | yes | |
dtend | string<date-time> | yes | |
all_day | boolean | yes | |
rrule | string | null | no | RFC5545 RRULE (ex: FREQ=WEEKLY;BYDAY=MO,WE). |
tz | string | no | IANA timezone name (Region/City). '' = UTC. |
is_recurring_instance | boolean | no | True quando é ocorrência expandida (não master row). |
recurrence_id | string<date-time> | null | no | dtstart canônico da ocorrência dentro da série. |
parent_event_id | string<uuid> | null | no | Aponta pro master quando é override. |
is_overridden | boolean | no | |
created_by | string<uuid> | no | |
created_at | string<date-time> | no | |
updated_at | string<date-time> | no | |
meet_room_id | string<uuid> | no | Sala de vídeo vinculada ao evento (F-063). AUSENTE quando o evento não tem sala — o cliente testa presença da chave, não string vazia. Só é devolvido em |
meet_room_slug | string | no | Slug da mesma sala. É a chave da entrada de CONVIDADO ( |
reminders | array<CalendarEventReminder> | no | Lembretes do evento (R-007). Devolvido em |
reminders[].id | string<uuid> | yes | |
reminders[].trigger_offset_minutes | integer | yes | |
reminders[].kind | string | yes | enum: |
reminders[].fired_at | string<date-time> | no | AUSENTE enquanto pendente; presente quando terminal. |
400
Input inválido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes | Mensagem humana curta; sem stack. |
401
Faltando ou token inválido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes | Mensagem humana curta; sem stack. |
403
Sem permissão para o recurso.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes | Mensagem humana curta; sem stack. |
404
Recurso não encontrado.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes | Mensagem humana curta; sem stack. |
429
Limite de requisições excedido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
500
Erro interno. Tente de novo com backoff; reporte o X-Request-Id.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
Examples
"Try it" is turned off in this reference. Use the examples with your test credential.
curl
curl -sS -X POST 'https://api-calendar.axuz.net/me/calendar/events' \
-H "Authorization: Bearer $AXUZ_TOKEN" \
-H "Content-Type: application/json" \
-d '{"calendar_id":"00000000-0000-0000-0000-000000000000","summary":"string","description":"string","location":"string","dtstart":"2026-01-15T12:00:00Z","dtend":"2026-01-15T12:00:00Z","all_day":false,"rrule":"string","tz":"string","reminders":[{"trigger_offset_minutes":1,"kind":"email"}]}'Node.js
const res = await fetch("https://api-calendar.axuz.net/me/calendar/events", {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"calendar_id": "00000000-0000-0000-0000-000000000000",
"summary": "string",
"description": "string",
"location": "string",
"dtstart": "2026-01-15T12:00:00Z",
"dtend": "2026-01-15T12:00:00Z",
"all_day": false,
"rrule": "string",
"tz": "string",
"reminders": [
{
"trigger_offset_minutes": 1,
"kind": "email"
}
]
}),
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"POST",
"https://api-calendar.axuz.net/me/calendar/events",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
json={
"calendar_id": "00000000-0000-0000-0000-000000000000",
"summary": "string",
"description": "string",
"location": "string",
"dtstart": "2026-01-15T12:00:00Z",
"dtend": "2026-01-15T12:00:00Z",
"all_day": False,
"rrule": "string",
"tz": "string",
"reminders": [
{
"trigger_offset_minutes": 1,
"kind": "email",
},
],
},
timeout=30,
)
res.raise_for_status()
print(res.json())