Zum Inhalt

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

idstring
keystring
titlestring
descriptionstring | null
triggerstring
categorystring | null
kindstring
planned_minutesinteger | null
planned_minutes_by_classobject
positioninteger
activeboolean
urlstring
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)

templatestringThe template's id or key, from list_task_templates. Omit to create one.
keystringLower-case letters, digits and underscores.
titlestringMay carry placeholders, e.g. „Prozess-Onboarding: {prozess}“.
descriptionstring | nullnull or an empty string clears it.
triggerone of once_per_order, per_item, per_flow_item
categoryone of platform, edition, connectivity, process, service, ai_package, one_time, credit | nullFor per_item: the catalogue category whose lines each get a task.
kindone of manual, platform_setup, process_onboarding, provisioning, decommission, deletion, release_rolloutDefault for a new one: manual.
planned_minutesinteger | nullFlat planned effort in minutes; null clears it.
planned_minutes_by_classobjectPlanned effort in minutes per process class; a class given null is cleared, one left out is kept.
planned_minutes_by_class.Sinteger | null
planned_minutes_by_class.Minteger | null
planned_minutes_by_class.Linteger | null
positionintegerOrder among the templates. Default for a new one: 0.
activebooleanDefault for a new one: true.

Response 200

createdboolean
noteoptionalstring
templateobject
template.idstring
template.keystring
template.titlestring
template.descriptionstring | null
template.triggerstring
template.categorystring | null
template.kindstring
template.planned_minutesinteger | null
template.planned_minutes_by_classobject
template.positioninteger
template.activeboolean
template.urlstring
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

idrequiredstringThe template's id or key, from list_task_templates.

Response 200

deletedboolean
keystring
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

idrequiredstringThe template's id or key, from list_task_templates.

Body (JSON)

activerequiredboolean

Response 200

templateobject
template.idstring
template.keystring
template.titlestring
template.descriptionstring | null
template.triggerstring
template.categorystring | null
template.kindstring
template.planned_minutesinteger | null
template.planned_minutes_by_classobject
template.positioninteger
template.activeboolean
template.urlstring
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.