Data Item
Create Data Items
If the user has access to the collection, new data items are created using the supplied values. Primary key constraints are not enforced. Any field name that is not part of the schema definition is ignored by default. The schema should be created prior to any data items being created.
post/collections/{collectionId}/items
Request
- Base URLhttps://data.lucid.app
- URLhttps://data.lucid.app/collections/{collectionId}/items
- AuthOAuth 2Authorization code: https://lucid.app/oauth2/authorizeToken URL: https://api.lucid.co/oauth2/token scopes: data-service.admin
Path parameters
collectionIdinteger required
ID of collection to create data items for
Request body
object[] required
Field value pairs to create data items from. Each mapping is for a single data item
Example request
[
{
"Co1B": "value1",
"Co2B": "value2"
}
]Response
OK with Array[Data Item] containing the newly created data items
Example response
[
{
"uri": "https://data.lucid.app/collections/2/items/4",
"collection": "https://data.lucid.app/collections/2",
"fields": {
"Co1B": "value1",
"Co2B": "value2"
}
}
]Changes
No recorded changes to this operation across all 1 revision of this API.