Data Item
Update Data Items
This endpoint allows updating multiple data items at once. The easiest way to accomplish is to modify the values in the response from Get All Data Items and send a PATCH request. Changing the values will update existing data item values. The collection field is ignored as the data item cannot be moved to a different collection. It the new value is null, it means the value is deleted. If the provided field name does not exist in the collection schema, that value is ignored.
patch/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 update data items for
Request body
Example request
{
"uri": "https://data.lucid.app/collections/2/items/4",
"fields": {
"Co1B": "new column 1b value",
"Co2B": "new column 2b value"
}
}Response
OK with Array[Data Item] containing the updated 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.