- 開発
- CMS Developer Docs
- Create a new item
Create a new item
POST /{model}/items
Submit a new item to the specified model. The created item is unpublished (Draft)
and will not appear in the public read API until it is published.
Only available when posting is enabled for both the project and the model.
Rate-limited per IP; when the limit is exceeded, a Retry-After header indicates
how many seconds to wait before retrying.
Authorizations
Section titled “Authorizations ”- None
- apiKey
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Model ID or key
Request Body required
Section titled “Request Body required ”object
Field values keyed by field key. Fields of type Asset, Reference, Tag, Group, GeometryEditor, and GeometryObject are not supported for posting and are ignored; if such a field is required by the model, posting is rejected entirely.
object
Responses
Section titled “ Responses ”Item accepted and created as unpublished
object
Unique ID of the created item
Timestamp when the item was created
Field values keyed by field key
object
Invalid JSON body or field validation error
object
Machine-readable error code (mirrors code).
Machine-readable error code.
Human-readable description of the error.
Field-level validation errors, present only for validation_error.
object
Posting disabled for the project/model, or origin not allowed
object
Machine-readable error code (mirrors code).
Machine-readable error code.
Human-readable description of the error.
Field-level validation errors, present only for validation_error.
object
Model not found
object
Machine-readable error code (mirrors code).
Machine-readable error code.
Human-readable description of the error.
Field-level validation errors, present only for validation_error.
object
Request body exceeds the allowed size limit
object
Machine-readable error code (mirrors code).
Machine-readable error code.
Human-readable description of the error.
Field-level validation errors, present only for validation_error.
object
Model has a required field of an unsupported type for posting
object
Machine-readable error code (mirrors code).
Machine-readable error code.
Human-readable description of the error.
Field-level validation errors, present only for validation_error.
object
Too many requests; retry after the period indicated by the Retry-After header
object
Machine-readable error code (mirrors code).
Machine-readable error code.
Human-readable description of the error.
Field-level validation errors, present only for validation_error.
object
Headers
Section titled “Headers ”Number of seconds to wait before retrying