Create a Dashboard Service
Create a new dashboard service connection to a platform such as Superset, Looker, or Tableau.
Body Parameters
Name of the dashboard service. Must be unique across all dashboard services.
Type of dashboard service (e.g., Superset, Looker, Tableau, Metabase, Redash, PowerBI, Mode, QlikSense, QlikCloud, Lightdash, DomoDashboard, CustomDashboard).
Description of the dashboard service in Markdown format.
Human-readable display name for the dashboard service.
Connection configuration specific to the service type. Service-specific connection configuration (e.g., hostPort, username, password for Superset).
Array of owner references (users or teams) to assign to the service. UUID of the owner entity.
Type of owner entity (e.g., user, team).
Name of the owner entity.
Fully qualified name of the domain to assign for governance purposes.
Array of classification tags to apply to the dashboard service. Fully qualified name of the tag.
Type of label (e.g., Manual, Derived, Propagated).
State of the tag (e.g., Suggested, Confirmed).
POST /v1/services/dashboardServices
from metadata.sdk import configure
import requests
configure(
host = "https://your-company.getcollate.io/api" ,
jwt_token = "your-jwt-token"
)
# Direct API call for dashboard services
response = requests.post(
"https://your-company.getcollate.io/api/v1/services/dashboardServices" ,
headers = { "Authorization" : "Bearer your-jwt-token" },
json = {
"name" : "sample_looker" ,
"displayName" : "Sample Looker" ,
"serviceType" : "Looker" ,
"description" : "Production Looker instance" ,
"connection" : {
"config" : {
"type" : "Looker" ,
"clientId" : "your-client-id" ,
"clientSecret" : "***" ,
"hostPort" : "https://looker.example.com:443"
}
}
}
)
service = response.json()
print ( f "Created: { service[ 'fullyQualifiedName' ] } " )
{
"id" : "2c0c7c05-d820-4bea-a471-047deb7f92fd" ,
"name" : "sample_looker" ,
"fullyQualifiedName" : "sample_looker" ,
"serviceType" : "Looker" ,
"description" : "Production Looker instance" ,
"version" : 0.1 ,
"updatedAt" : 1769982621219 ,
"updatedBy" : "admin" ,
"href" : "http://localhost:8585/api/v1/services/dashboardServices/2c0c7c05-d820-4bea-a471-047deb7f92fd" ,
"connection" : {
"config" : {
"type" : "Looker" ,
"clientId" : "your-client-id" ,
"clientSecret" : "***" ,
"hostPort" : "https://looker.example.com:443"
}
},
"owners" : [],
"tags" : [],
"deleted" : false ,
"domains" : []
}
Returns
Returns the created dashboard service object with all specified properties and system-generated fields.
Response
Unique identifier for the dashboard service (UUID format).
Fully qualified name of the service.
Human-readable display name.
Description of the dashboard service in Markdown format.
Type of dashboard service (e.g., Superset, Looker, Tableau, Metabase, PowerBI).
Connection configuration for the service. Service-specific connection configuration.
List of owners assigned to the dashboard service. UUID of the owner entity.
Type of owner entity (e.g., user, team).
Name of the owner entity.
Fully qualified name of the assigned domain.
Classification tags applied to the dashboard service. Fully qualified name of the tag.
Type of label (e.g., Manual, Derived, Propagated).
State of the tag (e.g., Suggested, Confirmed).
Version number for the entity (starts at 0.1).
Create or Update (PUT)
Use PUT /v1/services/dashboardServices instead of POST to perform an upsert. If a dashboard service with the same fullyQualifiedName already exists, it will be updated; otherwise, a new service is created. The request body is the same as POST.
curl -X PUT "{base_url}/api/v1/services/dashboardServices" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{ ... same body as POST ... }'
PUT will not return a 409 conflict error if the entity already exists — it will update the existing entity instead.
Bulk Create or Update (PUT)
Use PUT /v1/services/dashboardServices/bulk to create or update multiple dashboard services in a single request. The request body is an array of create request objects.
curl -X PUT "{base_url}/api/v1/services/dashboardServices/bulk" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '[
{ "name": "service_one", "serviceType": "Superset", "connection": { "config": {} } },
{ "name": "service_two", "serviceType": "Looker", "connection": { "config": {} } }
]'
Error Handling
Code Error Type Description 400BAD_REQUESTInvalid request body or missing required fields 401UNAUTHORIZEDInvalid or missing authentication token 403FORBIDDENUser lacks permission to create dashboard services 409ENTITY_ALREADY_EXISTSDashboard service with same name already exists (POST only)