POST
/ng-cms/content/{projectId}/{typeKey}/{entryId}/publish https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId}/publish Publish a content entry
Параметры запроса
projectId string Unique identifier of the project
typeKey string Key of the content type the entry belongs to
entryId string Unique identifier of the content entry to publish
publishedAt string Optional ISO 8601 date-time to schedule the publish time. If omitted, the entry is published immediately.
Ответы
200 Entry successfully published.
тип: ApiResponse<bool>
success boolean Always true on success result boolean true when the entry was published errors ErrorDetail[] Empty on success 401 Unauthorized. A valid API key is required.
404 Not Found. No content entry or project exists for the given identifiers.
500 Unexpected server error.
тип: ApiResponse<bool>
success boolean Always false errors ErrorDetail[] Server-side errors correlationId string Trace ID message string Error message stack string Stack 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 Example 200
{
"success": true,
"result": true,
"errors": []
} KONSO