ApiDatabus datasources
Update an existing datasource
Partially update fields of an existing datasource by its UUID
Access restricted to roles:
- admin
- manufacturer-admin
- manufacturer-user
Path Parameters
datasourceId*string
UUID of the datasource
Format
uuidRequest Body
application/json
datasourceType?string
Type of the datasource
Value in
"InfluxDB_v2" | "InfluxDB_v3" | "Inuatek"name?string
Name of the datasource
adapter*|
The connection information of the datasource
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://test.sweetconnect.io/api/databus-controller/v1/datasources/9488c561-749f-4b3d-8c2f-30e867ba66db" \ -H "Content-Type: application/json" \ -d '{ "adapter": { "org": "sweetconnect", "url": "https://influxdb.12345.example.org", "token": "readonly-token", "bucket": "default" } }'{
"data": {
"affected": "1"
}
}{
"errors": [
{
"errorCode": "RequestValidationError",
"message": "The 'username' field is required.",
"extension": {
"type": "body",
"key": "username"
}
}
]
}{
"errors": [
{
"errorCode": "Unauthorized",
"message": "Authentication is required to access this resource.",
"extension": {}
}
]
}{
"errors": [
{
"errorCode": "NoPermission",
"message": "You do not have permission to access this resource.",
"extension": {}
}
]
}