Schema
Update Field Definition
This endpoint takes a Field Definition, which is used to update the specified field definition. The easiest way to accomplish this is to modify the values in the response from the GET field definition endpoint and send a PATCH request.
patch/collections/{collectionId}/schema/{fieldDefinitionId}
Request
- Base URLhttps://data.lucid.app
- URLhttps://data.lucid.app/collections/{collectionId}/schema/{fieldDefinitionId}
- 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 definition for
fieldDefinitionIdinteger required
ID of field definition to update
Request body
Example request
{
"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 Field Definition containing new or updated fields
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.