Data Item
Update Data Item
Update values for the specified item. The easiest way to accomplish is to modify the values in the response from Get Data Item 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/{dataItemId}
Request
- Base URLhttps://data.lucid.app
- URLhttps://data.lucid.app/collections/{collectionId}/items/{dataItemId}
- 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 item for
dataItemIdinteger required
ID of data item to update
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 Data Item
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.