/ng-cms/content/{projectId}/{typeKey}https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}smart_toyAgentic specCreate a content entry
Создает новую запись контента указанного типа и возвращает созданный объект.
Параметры запроса
projectIdstringThe unique identifier of the project
typeKeystringThe key of the content type (e.g. blog-post). Must match an existing content type in the project.
Тело запроса
CreateContentEntryRequestfieldsobjectKey-value map of field data. Keys must match the field keys defined in the content type schema. Values are validated against each field's type and constraints.
langstringOptional language/locale tag for the entry (e.g. "en", "ru"). Free-form string — there is no fixed list of supported languages. When omitted, the entry is stored with no language tag (null). Use together with the language filter on the list endpoint to retrieve entries for a specific language.
Ответы
тип: ApiResponse<string>
successbooleanIndicates whether the request was successfulresultstringThe ID of the newly created content entryerrorsErrorDetail[]List of errors (empty on success)тип: ApiResponse<T>
isValidbooleanAlways false for validation errorsvalidationErrorsValidationError[]List of validation failuresnamestringField that failed validationattemptedValueobjectThe value that was submittedmessagestringHuman-readable validation messageтип: ApiResponse<T>
successbooleanAlways falseerrorsErrorDetail[]List of server-side errorscorrelationIdstringUnique ID for tracing the errormessagestringError messagestackstringStack trace (non-production only)curl --request POST \
--url https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey} \
--header 'x-api-key: <token>' \
--header 'Content-Type: application/json' \
--data '{
"fields": {
"title": "My First Post",
"body": "<p>Hello world</p>",
"publishedAt": "2025-06-01T10:00:00Z"
},
"lang": "en"
}'{
"success": true,
"result": "ce_x9y8z7w6v5u4",
"errors": []
}Исходный код
Референсные реализации этого эндпоинта — если поведение неочевидно, проще свериться с кодом, чем гадать.
Клиентские библиотеки
Официальные SDK для вызова этого метода из вашего кода — без ручной сборки запроса.
TS