Collection
Update Collection
This endpoint takes a JSON object and uses it to update the collection's name and/or data source. The JSON object of the updated collection is returned. Updates will only occur if the user has access to the data source. Only top level collections can be updated. Metadata collections cannot be updated.
patch/collections/{collectionId}
Request
- Base URLhttps://data.lucid.app
- URLhttps://data.lucid.app/collections/{collectionId}
- 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
Request body
Example request
{
"dataSource": "https://data.lucid.app/dataSources/12",
"name": "Updated Collection Name"
}Response
OK with Collection
Example response
{
"uri": "https://data.lucid.app/collections/3",
"dataSource": "https://data.lucid.app/dataSources/1",
"name": "Collection 1",
"lastSync": "2021-01-01T00:00:00Z",
"versionTimestamp": "2021-01-01T00:00:00Z",
"created": "2021-01-01T00:00:00Z",
"lastModified": "2021-01-01T00:00:00Z",
"items": "https://data.lucid.app/collections/3/items",
"schema": "https://data.lucid.app/collections/3/schema",
"properties": "https://data.lucid.app/collections/3/properties",
"metadata": "https://data.lucid.app/collections/3/metadata"
}Changes
No recorded changes to this operation across all 1 revision of this API.