{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/karbonhq/json-schema/karbonhq-get-single-work-template-schema.json",
  "title": "GetSingleWorkTemplate",
  "description": "A single Work Template",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/karbonhq-work-templates-api-openapi.yml#/components/schemas/GetSingleWorkTemplate",
  "required": [
    "WorkTemplateKey",
    "WorkTypeKey",
    "HasScheduledClientTaskGroups",
    "DraftHasChanges",
    "PublishedDate",
    "NumberOfWorkItemsCreated",
    "DateLastWorkItemCreated",
    "DateModified"
  ],
  "type": "object",
  "properties": {
    "WorkTemplateKey": {
      "type": "string",
      "description": "A Karbon-generated unique identifier for the Work Template"
    },
    "Title": {
      "type": "string",
      "description": "The title of the Work Template"
    },
    "Description": {
      "type": "string",
      "description": "A free text field to add more information about the Work Template"
    },
    "WorkTypeKey": {
      "type": "string",
      "description": "A Karbon-generated unique identifier to denote the Work Type"
    },
    "HasScheduledClientTaskGroups": {
      "type": "boolean",
      "description": "This property is set to true, if the Work Template has scheduled Client Tasks"
    },
    "EstimatedBudget": {
      "type": [
        "string",
        "null"
      ],
      "description": "The estimated budget for the Work Items generated using this Work Template. This property value will be `null`."
    },
    "EstimatedTime": {
      "type": "string",
      "description": "The estimated time required to complete the Work Items generated using this Work Template. This property value will be `null`."
    },
    "DraftHasChanges": {
      "type": "boolean",
      "description": "This property is set to true, if the Work Template has unpublished changes"
    },
    "PublishedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date at which this Work Template was published"
    },
    "NumberOfWorkItemsCreated": {
      "type": "number",
      "format": "int32",
      "description": "The number of Work Items created using this Work Template"
    },
    "DateLastWorkItemCreated": {
      "type": "string",
      "format": "date-time",
      "description": "The most recent date at which a Work Item was created using this Work Template"
    },
    "DateModified": {
      "type": "string",
      "format": "date-time",
      "description": "The most recent date at which this Work Template was modified"
    },
    "ActorRoles": {
      "type": "array",
      "description": "The user roles who are required to action the Work Items created using this Work Template",
      "items": {
        "type": "object",
        "properties": {
          "ActorKey": {
            "type": "string",
            "description": "A Karbon-generated unique identifier for the user role"
          },
          "ActorName": {
            "type": "string",
            "description": "The name of the user role"
          }
        }
      }
    }
  }
}