Collection
Create Metadata Collection
Create a new metadata collection for a given collection. The user must have access to the data source in order to create a metadata collection. Metadata collections cannot be updated.
post/collections/{collectionId}/metadata
Request
- Base URLhttps://data.lucid.app
- URLhttps://data.lucid.app/collections/{collectionId}/metadata
- 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 add metadata collection to
Request body
Example request
{
"name": "New Metadata Collection",
"metadataType": "TextColor",
"schema": [
{
"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"
}
],
"properties": {
"fontSize": "12"
}
}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.