Dashboard templates
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET |
List all dashboard templates
Required API key scopes
dashboard_template:readQuery parameters
- is_featuredboolean
- limitinteger
- offsetinteger
- orderingstringOne of:
"-created_at""-template_name""created_at""template_name" - scopestringOne of:
"feature_flag""global""team"
Response
Example request
GET /api /projects /:project_id /dashboard_templatesExample response
Status 200
RESPONSE
Create dashboard templates
Required API key scopes
dashboard_template:writeRequest parameters
- template_namestringnull
- dashboard_descriptionstringnull
- dashboard_filters
- tagsarraynull
- tiles
- variables
- deletedbooleannull
- image_urlstringnull
- scope
- availability_contextsarraynull
- is_featuredboolean
Response
Example request
POST /api /projects /:project_id /dashboard_templatesExample response
Status 201
RESPONSE
Retrieve dashboard templates
Required API key scopes
dashboard_template:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /dashboard_templates /:idExample response
Status 200
RESPONSE
Update dashboard templates
Required API key scopes
dashboard_template:writePath parameters
- idstring
Request parameters
- template_namestringnull
- dashboard_descriptionstringnull
- dashboard_filters
- tagsarraynull
- tiles
- variables
- deletedbooleannull
- image_urlstringnull
- scope
- availability_contextsarraynull
- is_featuredboolean
Response
Example request
PATCH /api /projects /:project_id /dashboard_templates /:idExample response
Status 200
RESPONSE
Delete dashboard templates
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
dashboard_template:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /dashboard_templates /:idExample response
Status 405 No response body
Create dashboard templates copy between projects
Creates a new team-scoped template in the target project (URL) from a team-scoped source template in the same organization. Global and feature-flag templates return 400. Cross-organization or inaccessible sources return 404. Source and destination projects must differ (400 if equal). Conflicting template_name values on the destination are auto-suffixed with (copy), (copy 2), …
Request parameters
- source_template_idstring
Response
Example request
POST /api /projects /:project_id /dashboard_templates /copy_between_projectsExample response
Status 201
RESPONSE
Retrieve dashboard templates json schema
Example request
GET /api /projects /:project_id /dashboard_templates /json_schema