Dashboards
Create Dashboard
POST
apiKeyAuthheader
x-api-key<token>FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
idOrSlug*stringapplication/json- body
name*stringdescription?string|null|nullisPublic?boolean|nullisPinned?boolean|nullfolderId?string|null|nullposition?number||nullmarkerOverrides?|null|nullDashboardRecord
application/json- response
id*stringprojectId*stringname*stringdescription*string|nullisPublic*booleanisDefault*booleanisPinned*booleanfolderId*string|nullposition*number|markerOverrides*|nullcreatedAt*stringupdatedAt*stringcurl -X POST 'https://api.faststats.dev/v0/projects/string/dashboards' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "id": "string", "projectId": "string", "name": "string", "description": "string", "isPublic": true, "isDefault": true, "isPinned": true, "folderId": "string", "position": 0, "markerOverrides": { "mode": "inherit", "collections": [ { "collectionId": "string", "enabled": true, "display": { "icon": "string", "emoji": "string", "color": "string" } } ], "hiddenCollectionIds": [ "string" ] }, "createdAt": "string", "updatedAt": "string"}curl -X POST 'https://api.faststats.dev/v0/projects/string/dashboards' \
-H 'Content-Type: application/json' \
-d '{
"name": "string"
}'{
"id": "string",
"projectId": "string",
"name": "string",
"description": "string",
"isPublic": true,
"isDefault": true,
"isPinned": true,
"folderId": "string",
"position": 0,
"markerOverrides": {
"mode": "inherit",
"collections": [
{
"collectionId": "string",
"enabled": true,
"display": {
"icon": "string",
"emoji": "string",
"color": "string"
}
}
],
"hiddenCollectionIds": [
"string"
]
},
"createdAt": "string",
"updatedAt": "string"
}