Schema
Update Field Definitions
This endpoint allows updating multiple field definitions at once. The easiest way to accomplish this is to modify the values in the response from the get all field definitions endpoint and send a PATCH request. Changing the values will update existing field definitions within the collection's schema. Any fields sent without a uri field will result in an addition to the schema if the name field is unique within the schema. Fields cannot be deleted with this endpoint.
patch/collections/{collectionId}/schema
Request
- Base URLhttps://data.lucid.app
- URLhttps://data.lucid.app/collections/{collectionId}/schema
- 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 field definitions for
Request body
Example request
[
{
"uri": "https://data.lucid.app/collections/2/schema/4",
"name": "Co1B",
"fieldType": "STRING",
"collection": "https://data.lucid.app/collections/2",
"isPrimary": false,
"order": "1",
"default": "5",
"label": "User Friendly Field Name"
}
]Response
OK with Array[Field Definition] containing new or updated fields on the collection
Example response
[
{
"uri": "https://data.lucid.app/collections/2/schema/4",
"name": "Co1B",
"fieldType": "STRING",
"collection": "https://data.lucid.app/collections/2",
"isPrimary": false,
"order": "1",
"default": "5",
"label": "User Friendly Field Name"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.