/ng-cms/content/{projectId}/{typeKey}/migratehttps://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/migratesmart_toyAgentic specMigrate a content entry
Эндпоинт переносит существующую запись контента, сохраняя оригинальные временные метки и возвращая результат миграции.
Параметры запроса
projectIdstringUnique identifier of the project (bucket)
typeKeystringKey or ID of the content type
Тело запроса
MigrateContentEntryRequestfieldsobjectKey-value map of field data matching the content type schema
contentTypeKeystringContent type key (optional override; typically resolved from typeKey route param)
createdAtstringOriginal creation timestamp in ISO 8601 UTC format to preserve on migration
updatedAtstringOriginal last-updated timestamp in ISO 8601 UTC format to preserve on migration
publishedAtstringOriginal publish timestamp in ISO 8601 UTC format to preserve on migration
Ответы
тип: ApiResponse<string>
successbooleanAlways true on successresultstringID of the newly created content entryerrorsErrorDetail[]Empty on successтип: ApiResponse<T>
isValidbooleanAlways falsevalidationErrorsValidationError[]List of validation failuresnamestringField that failedattemptedValueobjectSubmitted valuemessagestringValidation messageтип: ApiResponse<T>
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}/migrate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"fields":{"title":"Migrated Entry"},"createdAt":"2024-01-15T10:30:00Z","publishedAt":"2024-01-15T12:00:00Z"}'{
"success": true,
"result": "ce_a1b2c3d4e5f6",
"errors": []
}