PUT/ng-cms/content/{projectId}/{typeKey}/{entryId}

Update a content entry

Параметры запроса

projectIdstring
Обязательный

The unique identifier of the project (bucket)

typeKeystring
Обязательный

The key or ID of the content type

entryIdstring
Обязательный

The ID of the content entry to update

Тело запроса

UpdateContentEntryRequest
idstring
Обязательный

ID of the entry being updated

fieldsobject
Обязательный

Key-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 successful
resultbooleanAlways true on success
errorsErrorDetail[]List of errors (empty on success)
400Validation failed — fields do not satisfy the content type schema constraints.

тип: ApiResponse<T>

isValidbooleanAlways false for validation errors
validationErrorsValidationError[]List of validation failures
namestringField that failed validation
attemptedValueobjectThe value that was submitted
messagestringHuman-readable validation message
401Unauthorized. 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 false
errorsErrorDetail[]List of server-side errors
correlationIdstringUnique ID for tracing the error
messagestringError message
stackstringStack trace (non-production only)

Оставаясь на сайте, Вы даете свое согласие на использование файлов cookie