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

List Feeds

GET
/v1/calendar/feeds
curl --request GET \
--url https://api.cloud.agentums.ru/v1/calendar/feeds \
--header 'Authorization: Bearer <token>'

Выданные ICS-подписки на календарь.

enabled=false означает, что фича выключена на сервере, — это не то же самое, что пустой список подписок, и показывать пользователю нужно разное.

Successful Response

Media typeapplication/json
FeedList
object
enabled
Enabled
boolean
items
required
Items
Array<object>
FeedOut
object
access_count
Access Count
integer
0
created_at
required
Created At
string format: date-time
expires_at
Any of:
string format: date-time
id
required
Id
string format: uuid
last_access_at
Any of:
string format: date-time
name
required
Name
string
url
Url
string
""
webcal_url
Webcal Url
string
""
Example
{
"enabled": false,
"items": [
{
"access_count": 0,
"url": "",
"webcal_url": ""
}
]
}

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"
}
]
}