POST/ng-cms/content/{projectId}/{typeKey}/{entryId}/publish

Publish a content entry

Параметры запроса

projectIdstring
Обязательный

Unique identifier of the project

typeKeystring
Обязательный

Key of the content type the entry belongs to

entryIdstring
Обязательный

Unique identifier of the content entry to publish

publishedAtstring
Необязательный

Optional ISO 8601 date-time to schedule the publish time. If omitted, the entry is published immediately.

Ответы

200Entry successfully published.

тип: ApiResponse<bool>

successbooleanAlways true on success
resultbooleantrue when the entry was published
errorsErrorDetail[]Empty on success
401Unauthorized. A valid API key is required.
404Not Found. No content entry or project exists for the given identifiers.
500Unexpected server error.

тип: ApiResponse<bool>

successbooleanAlways false
errorsErrorDetail[]Server-side errors
correlationIdstringTrace ID
messagestringError message
stackstringStack trace (non-production only)

Исходный код

Референсные реализации этого эндпоинта — если поведение неочевидно, проще свериться с кодом, чем гадать.

Клиентские библиотеки

Официальные SDK для вызова этого метода из вашего кода — без ручной сборки запроса.

Konso.Clients.Cms
NuGet
dotnet add package Konso.Clients.Cms
Страница пакетаarrow_outward
@konso/cms-client
npm
npm install @konso/cms-client
Страница пакетаarrow_outward

Оставаясь на сайте, Вы даете свое согласие на использование файлов cookie