Reference
Task templates
GET/api/v1/task-templatesList task templates
Every task template, inactive ones too: the tasks an accepted quote produces. trigger once_per_order makes one task per order; per_item one per quote line of the template's category; per_flow_item one per quote line with a provisioning flow (with kind provisioning, the task is linked to the instance that line orders). Planned effort is in minutes; a per-class figure (S, M, L) wins over the flat one for a line with that process class. Title and description may carry placeholders such as {kunde}, {auftrag}, {position}, {prozess}. catalog.manage only.scope catalog
Response 200
| id | string |
| key | string |
| title | string |
| description | string | null |
| trigger | string |
| category | string | null |
| kind | string |
| planned_minutes | integer | null |
| planned_minutes_by_class | object |
| position | integer |
| active | boolean |
| url | string |
Schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"key": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"trigger": {
"type": "string"
},
"category": {
"type": [
"string",
"null"
]
},
"kind": {
"type": "string"
},
"planned_minutes": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"planned_minutes_by_class": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"position": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"active": {
"type": "boolean"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"key",
"title",
"description",
"trigger",
"category",
"kind",
"planned_minutes",
"planned_minutes_by_class",
"position",
"active",
"url"
],
"additionalProperties": false
}
}Refusals are problems with a code — see Errors.
POST/api/v1/task-templatesSave task template
Creates a task template (omit template; key, title and trigger are required, and a per_item template needs a category) or edits one: only the fields given change. Only orders made from now on are affected; tasks already created stay as they are. Planned effort is in minutes. Like on the page, the per-class figures cannot all be cleared at once: clearing the last one leaves them as they were. Template ids and keys come from list_task_templates. catalog.manage only.scope catalog
Body (JSON)
| template | stringThe template's id or key, from list_task_templates. Omit to create one. |
| key | stringLower-case letters, digits and underscores. |
| title | stringMay carry placeholders, e.g. „Prozess-Onboarding: {prozess}“. |
| description | string | nullnull or an empty string clears it. |
| trigger | one of once_per_order, per_item, per_flow_item |
| category | one of platform, edition, connectivity, process, service, ai_package, one_time, credit | nullFor per_item: the catalogue category whose lines each get a task. |
| kind | one of manual, platform_setup, process_onboarding, provisioning, decommission, deletion, release_rolloutDefault for a new one: manual. |
| planned_minutes | integer | nullFlat planned effort in minutes; null clears it. |
| planned_minutes_by_class | objectPlanned effort in minutes per process class; a class given null is cleared, one left out is kept. |
| planned_minutes_by_class.S | integer | null |
| planned_minutes_by_class.M | integer | null |
| planned_minutes_by_class.L | integer | null |
| position | integerOrder among the templates. Default for a new one: 0. |
| active | booleanDefault for a new one: true. |
Response 200
| created | boolean |
| noteoptional | string |
| template | object |
| template.id | string |
| template.key | string |
| template.title | string |
| template.description | string | null |
| template.trigger | string |
| template.category | string | null |
| template.kind | string |
| template.planned_minutes | integer | null |
| template.planned_minutes_by_class | object |
| template.position | integer |
| template.active | boolean |
| template.url | string |
Schema
{
"type": "object",
"properties": {
"created": {
"type": "boolean"
},
"note": {
"type": "string"
},
"template": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"key": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"trigger": {
"type": "string"
},
"category": {
"type": [
"string",
"null"
]
},
"kind": {
"type": "string"
},
"planned_minutes": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"planned_minutes_by_class": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"position": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"active": {
"type": "boolean"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"key",
"title",
"description",
"trigger",
"category",
"kind",
"planned_minutes",
"planned_minutes_by_class",
"position",
"active",
"url"
],
"additionalProperties": false
}
},
"required": [
"created",
"template"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
DELETE/api/v1/task-templates/{id}Delete task template
Deletes a task template for good. The tasks it already produced stay with their orders. To stop it without losing it, use set_task_template_active. catalog.manage only.scope catalog
Path
| idrequired | stringThe template's id or key, from list_task_templates. |
Response 200
| deleted | boolean |
| key | string |
Schema
{
"type": "object",
"properties": {
"deleted": {
"type": "boolean"
},
"key": {
"type": "string"
}
},
"required": [
"deleted",
"key"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
POST/api/v1/task-templates/{id}/activeSet task template active
Deactivates a task template -- orders made from now on no longer get its task -- or activates it again. catalog.manage only.scope catalog
Path
| idrequired | stringThe template's id or key, from list_task_templates. |
Body (JSON)
| activerequired | boolean |
Response 200
| template | object |
| template.id | string |
| template.key | string |
| template.title | string |
| template.description | string | null |
| template.trigger | string |
| template.category | string | null |
| template.kind | string |
| template.planned_minutes | integer | null |
| template.planned_minutes_by_class | object |
| template.position | integer |
| template.active | boolean |
| template.url | string |
Schema
{
"type": "object",
"properties": {
"template": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"key": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"trigger": {
"type": "string"
},
"category": {
"type": [
"string",
"null"
]
},
"kind": {
"type": "string"
},
"planned_minutes": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"planned_minutes_by_class": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"position": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"active": {
"type": "boolean"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"key",
"title",
"description",
"trigger",
"category",
"kind",
"planned_minutes",
"planned_minutes_by_class",
"position",
"active",
"url"
],
"additionalProperties": false
}
},
"required": [
"template"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.