{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/WorkflowUpdate",
  "title": "WorkflowUpdate",
  "additionalProperties": true,
  "description": "The details of the workflows to update.",
  "maximum": 20,
  "properties": {
    "defaultStatusMappings": {
      "description": "The mapping of old to new status ID.",
      "items": {
        "$ref": "#/components/schemas/StatusMigration"
      },
      "type": "array"
    },
    "description": {
      "description": "The new description for this workflow.",
      "type": "string"
    },
    "id": {
      "description": "The ID of this workflow.",
      "type": "string"
    },
    "startPointLayout": {
      "$ref": "#/components/schemas/WorkflowLayout"
    },
    "statusMappings": {
      "description": "The mapping of old to new status ID for a specific project and issue type.",
      "items": {
        "$ref": "#/components/schemas/StatusMappingDTO"
      },
      "type": "array"
    },
    "statuses": {
      "description": "The statuses associated with this workflow.",
      "items": {
        "$ref": "#/components/schemas/StatusLayoutUpdate"
      },
      "type": "array"
    },
    "transitions": {
      "description": "The transitions of this workflow.",
      "items": {
        "$ref": "#/components/schemas/TransitionUpdateDTO"
      },
      "type": "array"
    },
    "version": {
      "$ref": "#/components/schemas/DocumentVersion"
    }
  },
  "required": [
    "id",
    "statuses",
    "transitions",
    "version"
  ],
  "type": "object"
}