POST/spaces/api/v1/templates/metrics.json
create a template metric recording when a global template has been used to create a page.
Body Params
- Name
globalTemplate
- Type
- object
- Description
- GlobalTemplateMetrics contains all required arguments to create entry in the metrics table to track when a global template has been used.
Responses
- Code
- 201
- Type
- object
- Schema
- Description
- 201 Created
- Code
- 400
- Type
- object
- Schema
- Description
- 400 Bad Request
- Code
- 404
- Type
- object
- Schema
- Description
- 404 Not Found
- Code
- 500
- Type
- object
- Schema
- Description
- 500 Internal Server Error
201 Created
GlobalTemplateMetric
{
"globalTemplate": {
"createdAt": "2025-02-11T11:36:22.318Z",
"id": 0,
"installationId": 0,
"userId": 0
}
}