Skip to content
Report Templates

Create a report-template version

POST/api/v1alpha1/report-templates/{report_template_id}/versions

Appends an immutable version. A report template can have at most 100 versions. Archived and anonymous templates reject new versions with a conflict.

AuthorizationBearer <token>

In: header

Path Parameters

report_template_id*string

Identifier of a report template in this workspace.

Header Parameters

Idempotency-Key?string

Optional key for safe retry of this POST. The key is retained for 24 hours and compared with the request payload and concrete path parameters.

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/api/v1alpha1/report-templates/tpl_0190b5d4-7e1f-7a2b-9c3d-1234567890ab/versions" \  -H "Authorization: Bearer $DEEPFRAME_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "blocks": [      {        "answer_key": "",        "columns": [          {            "key": "",            "label": ""          }        ],        "field_labels": [          {            "key": "",            "label": ""          }        ],        "group_by": "",        "label": "",        "mapping": {},        "sort_by": "",        "sort_direction": "asc",        "type": "timeline"      }    ],    "language": "ja"  }'
{  "blocks": [    {      "answer_key": "",      "columns": [        {          "key": "",          "label": ""        }      ],      "field_labels": [        {          "key": "",          "label": ""        }      ],      "group_by": "",      "label": "",      "mapping": {},      "sort_by": "",      "sort_direction": "asc",      "type": "timeline"    }  ],  "created_at": "2026-08-22T10:00:00.000Z",  "created_by": "user_0190b5d4-7e1f-7a2b-9c3d-1234567890ab",  "language": "ja",  "report_template_id": "tpl_0190b5d4-7e1f-7a2b-9c3d-1234567890ab",  "version": 1}