Update Event
PATCH
/v1/calendar/events/{event_id}
const url = 'https://api.cloud.agentums.ru/v1/calendar/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"description":"example","ends_at":"example","location":"example","reminders":[1],"rrule":"example","starts_at":"example","title":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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=.
Authorizations
Заголовок раздела «Authorizations»Parameters
Заголовок раздела «Parameters»Path Parameters
Заголовок раздела «Path Parameters»event_id
required
Event Id
string format: uuid
Request Bodyrequired
Заголовок раздела «Request Bodyrequired»Media typeapplication/json
EventUpdate
Частичная правка: None — «не трогать».
status сюда НЕ входит намеренно: у отмены ровно один путь записи — DELETE. Два способа
отменить встречу означали бы два места, где можно забыть про exdates.
object
Examplegenerated
{ "description": "example", "ends_at": "example", "location": "example", "reminders": [ 1 ], "rrule": "example", "starts_at": "example", "title": "example"}Responses
Заголовок раздела «Responses»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
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>
ValidationErrorobject
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" } ]}