/ng-cms/content/{projectId}/{typeKey}/{entryId}/publishhttps://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId}/publishsmart_toyAgentic specPublish a content entry
Опубликовывает запись контента, делая её доступной через API доставки.
Параметры запроса
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.
Ответы
тип: ApiResponse<bool>
successbooleanAlways true on successresultbooleantrue when the entry was publishederrorsErrorDetail[]Empty on successтип: ApiResponse<bool>
successbooleanAlways falseerrorsErrorDetail[]Server-side errorscorrelationIdstringTrace IDmessagestringError messagestackstringStack trace (non-production only)curl --request POST \
--url https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId}/publish \
--header 'x-api-key: <token>'{
"success": true,
"result": true,
"errors": []
}Исходный код
Референсные реализации этого эндпоинта — если поведение неочевидно, проще свериться с кодом, чем гадать.
Клиентские библиотеки
Официальные SDK для вызова этого метода из вашего кода — без ручной сборки запроса.
TS