POST
/ng-cms/content/{projectId}/{typeKey}/migratehttps://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/migrateMigrate 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
Ответы
201Entry migrated successfully. Returns the new entry ID.
тип: ApiResponse<string>
successbooleanAlways true on successresultstringID of the newly created content entryerrorsErrorDetail[]Empty on success401Unauthorized.
404Content type or project not found.
400Validation failed.
тип: ApiResponse<T>
isValidbooleanAlways falsevalidationErrorsValidationError[]List of validation failuresnamestringField that failedattemptedValueobjectSubmitted valuemessagestringValidation message500Unexpected server error.
тип: ApiResponse<T>
successbooleanAlways falseerrorsErrorDetail[]Server-side errorscorrelationIdstringTrace IDmessagestringError messagestackstringStack trace (non-production only)Язык:
expand_more
Пример запроса
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"}'Response Example201
{
"success": true,
"result": "ce_a1b2c3d4e5f6",
"errors": []
}KONSO