Skip to main content
PUT
/
model-monitor
/
v2
/
api
/
datasource
Create or delete a datasource.
curl --request PUT \
  --url https://api.example.com/model-monitor/v2/api/datasource \
  --header 'Content-Type: application/json' \
  --header 'X-Domino-Api-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "type": "<string>",
  "config": {
    "bucket": "<string>",
    "region": "<string>",
    "instance_role": true,
    "access_key": "<string>",
    "secret_key": "<string>"
  }
}
'
{
  "id": "<string>",
  "name": "<string>",
  "type": "<string>",
  "user_id": "<string>",
  "created_at": 123,
  "updated_at": 123,
  "config": {
    "bucket": "<string>",
    "region": "<string>",
    "instance_role": true
  },
  "username": "<string>"
}

Authorizations

X-Domino-Api-Key
string
header
required

Body

application/json

S3 request object.

name
string
required

Name of the data source.

type
string
required

Type of data source.

config
object
required

S3 Configuration options.

Response

Data source added/updated successfully

S3 response object.

id
string
required

ID of the data source object.

name
string
required

Name of the data source.

type
string
required

Type of data source.

user_id
string
required

ID of the user who created the data source.

created_at
number
required

Created time of the data source.

updated_at
number
required

Last updated time of the data source.

config
object
required

S3 Configuration options.

username
string

User who has created the data source.