Appearance
Create Data Source
Create a new data source configuration for use in dashboard widgets. Requires ADMIN permissions.
Parameters
| name * are required parameters | data type | description |
|---|---|---|
body.name* | string | The display name of the data source |
body.type* | string | The type of data source (e.g., form, task, training) |
body.query | object | Query configuration to define what data is fetched |
body.dashboardId | string | Optional dashboard ID to associate the data source with |
Return Value
The created data source configuration.
Examples
bash
curl -X POST "https://app.wombat.software/api/{targetPath}/data-source" \
-H "Content-Type: application/json" \
-H "Authentication: Bearer ..." \
-d '{"name": "Incident Count by Month", "type": "form", "query": {"formId": "incident-form-123"}}'ENDPOINTS
post
/api/{targetPath}/data-source