POST
/ng-cms/content/{projectId}/{typeKey}/{entryId}/publishhttps://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId}/publishPublish a content entry
Параметры запроса
projectIdstringUnique identifier of the project
typeKeystringKey of the content type the entry belongs to
entryIdstringUnique identifier of the content entry to publish
publishedAtstringOptional ISO 8601 date-time to schedule the publish time. If omitted, the entry is published immediately.
Ответы
200Entry successfully published.
тип: ApiResponse<bool>
successbooleanAlways true on successresultbooleantrue when the entry was publishederrorsErrorDetail[]Empty on success401Unauthorized. A valid API key is required.
404Not Found. No content entry or project exists for the given identifiers.
500Unexpected server error.
тип: ApiResponse<bool>
successbooleanAlways falseerrorsErrorDetail[]Server-side errorscorrelationIdstringTrace IDmessagestringError messagestackstringStack trace (non-production only)Язык:
expand_more
Пример запроса
curl --request POST \
--url https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId}/publish \
--header 'x-api-key: <token>'Response Example200
{
"success": true,
"result": true,
"errors": []
}KONSO
Исходный код
Референсные реализации этого эндпоинта — если поведение неочевидно, проще свериться с кодом, чем гадать.
Клиентские библиотеки
Официальные SDK для вызова этого метода из вашего кода — без ручной сборки запроса.
TS