Create Data Source
This method allows you to create a new data source.
Request
URI
POST
https://{api_host}/api/v1/control/data-sources
COPY
Request Body
OneOf
This class requires at least one of the following:
Responses
201
Successful Response
Returns
DataSource
of type(s)
application/json
"DataSource Object"
string As uuid
As uuid
id
Required
id
string As uri
As uri
origin_url
Required
Constraints:
minLength: 1
URL of the source of data that can be accessed via this data source.
string
name
Optional
Name of the data source.
string
description
Optional
Description of the data source.
string
type
Required
Type of the Data Source.
Possible values are :
GOOGLE_DRIVE,
CONFLUENCE,
S3,
SHAREPOINT,
string
object
Optional
Constraints:
default: data_source
Object type, which is always data_source
.
integer
created_at
Required
Unix timestamp (in seconds) when the data source was created.
integer
last_updated_at
Required
Unix timestamp (in seconds) when the data source was last updated.
options
Optional
Options used when interacting with the data source.
422
Validation Error
Returns
HTTPValidationError
of type(s)
application/json
"HTTPValidationError Object"
array of
object
detail
Optional
detail
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v1/control/data-sources