Теги

Notes
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
List

API endpoint:

GET
https://vk-cc.ru/api/v1/spaces

Пример запроса:

curl --location --request GET 'https://vk-cc.ru/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Формат
Описание
search
optional string
Поисковый запрос.
search_by
optional string
Поиск по. Possible values are: name for Имя. Defaults to: name.
sort_by
optional string
Сортировать. Possible values are: id for Дата создания, name for Имя. Defaults to: id.
sort
optional string
Сортировать. Possible values are: desc for По убыванию, asc for По возрастанию. Defaults to: desc.
per_page
optional int
Результатов на странице. Possible values are: 10, 25, 50, 100. Defaults to: 100.
Show

API endpoint:

GET
https://vk-cc.ru/api/v1/spaces/{id}

Пример запроса:

curl --location --request GET 'https://vk-cc.ru/api/v1/spaces/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://vk-cc.ru/api/v1/spaces

Пример запроса:

curl --location --request POST 'https://vk-cc.ru/api/v1/spaces' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'
Parameter
Формат
Описание
name
required string
The space name.
color
optional integer
The color code. Possible values are: 1, 2, 3, 4, 5, 6. Defaults to: 1.
Update

API endpoint:

PUT PATCH
https://vk-cc.ru/api/v1/spaces/{id}

Пример запроса:

curl --location --request PUT 'https://vk-cc.ru/api/v1/spaces/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Формат
Описание
name
optional string
The space name.
color
optional integer
The color code. Possible values are: 1, 2, 3, 4, 5, 6.
Удалить

API endpoint:

DELETE
https://vk-cc.ru/api/v1/spaces/{id}

Пример запроса:

curl --location --request DELETE 'https://vk-cc.ru/api/v1/spaces/{id}' \
--header 'Authorization: Bearer {api_key}'