PATCH /teams/{teamId}/calendar/events/{id}/this-and-future
Divide série a partir de `split`.
- Access: Team member
- 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 PATCH /teams/{teamId}/calendar/events/{id}/this-and-future.
Motivo: implementar a semântica "editar a partir desta data" — usada pelo UI quando o convidado quer alterar apenas ocorrências futuras.
Comportamento: exige team+user+id + body (split RFC3339 obrigatório); só creator (EventForAttendees devolve createdBy) pode dividir; delega repo.SplitRecurringSeries — trunca a série antiga com UNTIL=split-1s e cria nova série a partir de split aplicando as mudanças; ErrNoRRule → 400 (evento não recorrente); pgx.ErrNoRows → 404; sucesso: carrega novo event via GetEvent e devolve 201 (ou só id se GetEvent falhar).
Entradas: URL params + JSON splitEventInput.
Retorno: JSON 201.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
teamId | path | string | yes | |
id | path | string | yes |
Request body
application/json · Required
| Name | Type | Required | Description |
|---|---|---|---|
split | string<date-time> | yes | |
summary | string | null | no | |
description | string | null | no | |
location | string | null | no | |
dtstart | string<date-time> | null | no | |
dtend | string<date-time> | null | no | |
all_day | boolean | null | no | |
rrule | string | null | no |
{
"split": "2026-01-15T12:00:00Z",
"summary": "string",
"description": "string",
"location": "string",
"dtstart": "2026-01-15T12:00:00Z",
"dtend": "2026-01-15T12:00:00Z",
"all_day": true,
"rrule": "string"
}Responses
201
Nova série criada.
| Name | Type | Required | Description |
|---|---|---|---|
(corpo) | oneOf | no |
400
Body inválido ou event não recorrente.
| 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 PATCH 'https://api-calendar.axuz.net/teams/TEAM_ID/calendar/events/ID/this-and-future' \
-H "Authorization: Bearer $AXUZ_TOKEN" \
-H "Content-Type: application/json" \
-d '{"split":"2026-01-15T12:00:00Z","summary":"string","description":"string","location":"string","dtstart":"2026-01-15T12:00:00Z","dtend":"2026-01-15T12:00:00Z","all_day":true,"rrule":"string"}'Node.js
const res = await fetch("https://api-calendar.axuz.net/teams/TEAM_ID/calendar/events/ID/this-and-future", {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"split": "2026-01-15T12:00:00Z",
"summary": "string",
"description": "string",
"location": "string",
"dtstart": "2026-01-15T12:00:00Z",
"dtend": "2026-01-15T12:00:00Z",
"all_day": true,
"rrule": "string"
}),
});
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(
"PATCH",
"https://api-calendar.axuz.net/teams/TEAM_ID/calendar/events/ID/this-and-future",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
json={
"split": "2026-01-15T12:00:00Z",
"summary": "string",
"description": "string",
"location": "string",
"dtstart": "2026-01-15T12:00:00Z",
"dtend": "2026-01-15T12:00:00Z",
"all_day": True,
"rrule": "string",
},
timeout=30,
)
res.raise_for_status()
print(res.json())