Data Source

Create Data Source

Creates a new data source and a corresponding new data source grant for the user.

post/dataSources

Request

  • Base URL
    https://data.lucid.app
  • URL
    https://data.lucid.app/dataSources
  • Auth
    OAuth 2
    Authorization code: https://lucid.app/oauth2/authorize
    Token URL: https://api.lucid.co/oauth2/token scopes: data-service.admin

Request body

namestring required

Name to give the new data source

adapterTypestring

Type of adapter used to create the data source. Valid values are CSV, DATA_API, and UNKNOWN. (Defaults to UNKNOWN)

Example request

{
  "name": "Internal Org Chart",
  "adapterType": "CSV"
}

Response

OK with Data Source

uristring required

URI of the data source

namestring required

Name of the data source

adapterTypestring required

Type of adapter used to create the data source. Valid values are CSV, DATA_API, and UNKNOWN

collectionsstring required

Link to get collections for the data source

createdstring required

Date the data source was created

lastModifiedstring required

Date the data source was last modified

pendingboolean required

If a data source is marked pending it won't be availble for users to select within Lucid

dataSetstring required

Link to get the data set for the data source

linkParametersobject

Link parameters for the data source

deletedstring

Date the data source was deleted

Example response

{
  "uri": "https://data.lucid.app/dataSources/2967",
  "name": "New Data Source",
  "adapterType": "CSV",
  "collections": "https://data.lucid.app/collections?dataSource=https://data.lucid.app/dataSources/2967",
  "created": "2021-01-01T00:00:00Z",
  "lastModified": "2021-01-01T00:00:00Z",
  "pending": false,
  "dataSet": "https://data.lucid.app/dataSets/2168"
}

Changes

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