Delve into the realm of customizable templates with the GET /templates/
endpoint, a gateway to a plethora of dynamic forms and check-ins. This API call provides users (API key owners) with the ability to retrieve an array of templates tailored to their preferences.
Understanding the Endpoint:
-
Path:
/templates/
- Method: GET
Query Parameters:
- type (required): Specifies the type of templates to retrieve (check-ins or forms).
- system_default (optional): Boolean parameter to retrieve system default templates (true or false).
Response Example:
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"name": "Daily Check-in",
"questions": {
"logic": [
{
"next_key": 1,
"prev_key": false,
"question_key": 0
},
{
"next_key": false,
"prev_key": 0,
"question_key": 1
}
],
"fields": [
{
"uuid": "7bc84a34-29a3-488b-a89f-5205bcaa4b0a",
"question": "What did you complete in your previous workday?",
"is_blocker": false,
"is_optional": false,
"extra_params": {
"special_vars": []
},
"question_type": "text",
"question_short": "Previous work day progress"
},
{
"uuid": "a928c8ee-86a2-4dcb-b6d8-e94a45a18511",
"question": "What are you planning to work on today?",
"is_blocker": false,
"is_optional": false,
"extra_params": {
"special_vars": []
},
"question_type": "text",
"question_short": "Plans for today"
}
],
"version": 1
},
"intro": "",
"outro": ""
}
]
}
Comments
0 comments
Article is closed for comments.