Перейти к содержимому

Update Event

PATCH
/v1/calendar/events/{event_id}
curl --request PATCH \
--url https://api.cloud.agentums.ru/v1/calendar/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "ends_at": "example", "location": "example", "reminders": [ 1 ], "rrule": "example", "starts_at": "example", "title": "example" }'

Изменить встречу. Незаданные поля не трогаются; время — в поясе владельца.

Правка серии меняет всю серию: отдельного «изменить только это вхождение» здесь нет. Отменить одно вхождение можно удалением с ?occurrence_at=.

event_id
required
Event Id
string format: uuid
Media typeapplication/json
EventUpdate

Частичная правка: None — «не трогать».

status сюда НЕ входит намеренно: у отмены ровно один путь записи — DELETE. Два способа отменить встречу означали бы два места, где можно забыть про exdates.

object
description
Any of:
string
ends_at
Any of:
string
location
Any of:
string
reminders
Any of:
Array<integer>
rrule
Any of:
string
starts_at
Any of:
string
title
Any of:
string
Examplegenerated
{
"description": "example",
"ends_at": "example",
"location": "example",
"reminders": [
1
],
"rrule": "example",
"starts_at": "example",
"title": "example"
}

Successful Response

Media typeapplication/json
EventOut
object
all_day
All Day
boolean
description
Description
string
""
ends_at
required
Ends At
string format: date-time
id
required
Id
string format: uuid
location
Location
string
""
number
required
Number
integer
recurrence_label
Recurrence Label
string
""
reminders
Reminders
Array<integer>
rrule
Rrule
string
""
starts_at
required
Starts At
string format: date-time
status
Status
string
default: confirmed
title
required
Title
string
tz
required
Tz
string
Example
{
"all_day": false,
"description": "",
"location": "",
"recurrence_label": "",
"rrule": "",
"status": "confirmed"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}