Create a reusable template of ordered steps.
Create a reusable template of ordered steps.
POST
https://app.softsolz.uk/api/v1/services/tasks/templatesRecent Requests
Kept only in this browserTimeStatusTook
Send a request with Try it to see it here.
Headers
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Body Params
namestringrequiredTemplate name.
descriptionstringWhat running it produces.
category_idintegerCategory the created tasks land in.
itemsarray of objectsOrdered steps, each with offset_days and an assignee_rule.
Response
Response Body
idintegerTemplate id.namestringTemplate name.descriptionstring | nullWhat running it produces.category_idinteger | nullCategory the created tasks land in.itemsarray of objectsOrdered steps. Each carries offset_days and an assignee_rule of { mode: group|role|fixed|creator, ref }.Request
curl --request POST \ --url https://app.softsolz.uk/api/v1/services/tasks/templates \ --header 'Authorization: Bearer sk_live_your_key' \ --header 'Content-Type: application/json' \ --data '{ "name": "New starter onboarding", "description": null, "items": [ { "title": "Collect documents", "offset_days": 0, "assignee_rule": { "mode": "creator" } } ]}'Credentials
Sent as a Bearer token and used in the samples above and in Try it. Kept only in this browser tab until you close it. Use an sk_test_ key to stay in your sandbox.
Response · 201
{ "data": { "id": 12, "name": "New starter onboarding", "description": null, "category_id": 7, "items": [ { "sort_order": 1, "title": "Collect documents", "offset_days": 0, "assignee_rule": { "mode": "role", "ref": "admin" } } ] }}