PUT
/ng-cms/content/{projectId}/{typeKey}/{entryId}https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId}Update a content entry
Параметры запроса
projectIdstringThe unique identifier of the project (bucket)
typeKeystringThe key or ID of the content type
entryIdstringThe ID of the content entry to update
Тело запроса
UpdateContentEntryRequestidstringID of the entry being updated
fieldsobjectKey-value map of field data. Keys must match the field keys defined in the content type schema.
Ответы
200Entry updated successfully.
тип: ApiResponse<boolean>
successbooleanIndicates whether the request was successfulresultbooleanAlways true on successerrorsErrorDetail[]List of errors (empty on success)400Validation failed — fields do not satisfy the content type schema constraints.
тип: ApiResponse<T>
isValidbooleanAlways false for validation errorsvalidationErrorsValidationError[]List of validation failuresnamestringField that failed validationattemptedValueobjectThe value that was submittedmessagestringHuman-readable validation message401Unauthorized. A valid bearer token is required.
404Not Found. No content entry or content type exists with the given ID or key.
412Precondition Failed. The project's current plan does not allow access to this resource, or payment is required to proceed.
500Unexpected server error.
тип: ApiResponse<T>
successbooleanAlways falseerrorsErrorDetail[]List of server-side errorscorrelationIdstringUnique ID for tracing the errormessagestringError messagestackstringStack trace (non-production only)Язык:
expand_more
Пример запроса
curl --request PUT \
--url https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<entryId>",
"fields": {
"title": "Updated Post Title",
"body": "<p>Updated content</p>",
"publishedAt": "2025-06-15T10:00:00Z"
}
}'Response Example200
{
"success": true,
"result": true,
"errors": []
}KONSO