Schema

Get Field Definition

Gets a specific existing field definition for a given collection

get/collections/{collectionId}/schema/{fieldDefinitionId}

Request

  • Base URL
    https://data.lucid.app
  • URL
    https://data.lucid.app/collections/{collectionId}/schema/{fieldDefinitionId}
  • Auth
    OAuth 2
    Authorization code: https://lucid.app/oauth2/authorize
    Token URL: https://api.lucid.co/oauth2/token scopes: data-service.admin

Path parameters

collectionIdinteger required

ID of collection to get field definition for

fieldDefinitionIdinteger required

ID of field definition to get

Response

OK with Field Definition

uristring required

Link to self

namestring required

Name of the field

fieldTypestring required

Stores the type of the field. The type does not affect how the data is interpreted in the Data Service; it is for use on the client side. Valid values include BOOLEAN, STRING, NUMBER, and ANY.

collectionstring required

Link to the associated collection

isPrimaryboolean required

Denotes whether the specified field is part of the primary key. The default value is false

orderstring

Denotes a default ordering for the fields. This is currently used by the Lucid client to determine the order in which the fields are displayed, unless the context suggests a better ordering.

defaultstring

Default value for this field

labelstring

Override name for field which is used when displaying to users

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": "null"
}

Changes

No recorded changes to this operation across all 1 revision of this API.