{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-xdr/json-schema/cisco-xdr-get-task-response-schema.json",
  "title": "An GetTaskResponse model.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-xdr-tasks-api-openapi.yml#/components/schemas/GetTaskResponse",
  "type": "object",
  "properties": {
    "action_instance_id": {
      "type": "string",
      "x-go-name": "ActionInstanceID"
    },
    "approval_choices": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "x-go-name": "ApprovalChoices"
    },
    "assignee_responses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssigneeResponse"
      },
      "x-go-name": "AssigneeResponses"
    },
    "assignee_roles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "x-go-name": "AssigneeRoles"
    },
    "assignees": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "x-go-name": "Assignees"
    },
    "base_type": {
      "type": "string",
      "x-go-name": "BaseType"
    },
    "created_by": {
      "type": "string",
      "x-go-name": "CreatedBy"
    },
    "created_on": {
      "type": "string",
      "format": "date-time",
      "x-go-name": "CreatedOn"
    },
    "description": {
      "type": "string",
      "x-go-name": "Description"
    },
    "display_name": {
      "type": "string",
      "x-go-name": "Name"
    },
    "due_date": {
      "$ref": "#/$defs/LHTime"
    },
    "expiration_date": {
      "$ref": "#/$defs/LHTime"
    },
    "expiration_status": {
      "type": "string",
      "x-go-name": "ExpirationStatus"
    },
    "form_elements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FormElement"
      },
      "x-go-name": "FormElements"
    },
    "id": {
      "type": "string",
      "x-go-name": "TaskID"
    },
    "minimum_approvals": {
      "type": "integer",
      "format": "uint32",
      "x-go-name": "MinimumApprovals"
    },
    "priority": {
      "$ref": "#/$defs/TaskPriority"
    },
    "prompt_body_text": {
      "type": "string",
      "x-go-name": "PromptBodyText"
    },
    "prompt_response": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {}
      },
      "x-go-name": "PromptResponse"
    },
    "response": {
      "type": "string",
      "x-go-name": "Response"
    },
    "status": {
      "$ref": "#/$defs/Status"
    },
    "subject_line": {
      "type": "string",
      "x-go-name": "SubjectLine"
    },
    "task_message": {
      "type": "string",
      "x-go-name": "ApprovalMessage"
    },
    "task_owner": {
      "type": "string",
      "x-go-name": "TaskOwner"
    },
    "task_requestor": {
      "type": "string",
      "x-go-name": "TaskRequestor"
    },
    "title": {
      "type": "string",
      "x-go-name": "Title"
    },
    "type": {
      "type": "string",
      "x-go-name": "Type"
    },
    "updated_by": {
      "type": "string",
      "x-go-name": "UpdatedBy"
    },
    "updated_on": {
      "type": "string",
      "format": "date-time",
      "x-go-name": "UpdatedOn"
    },
    "wf_instance_id": {
      "type": "string",
      "x-go-name": "WFInstanceID"
    }
  },
  "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/be-console/models",
  "$defs": {
    "AssigneeResponse": {
      "title": "AssigneeResponse ...",
      "type": "object",
      "properties": {
        "assignee": {
          "type": "string",
          "x-go-name": "Assignee"
        },
        "message": {
          "type": "string",
          "x-go-name": "Message"
        },
        "response": {
          "type": "string",
          "x-go-name": "Response"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "FormElement": {
      "title": "FormElement ...",
      "type": "object",
      "properties": {
        "allow_multiselect": {
          "type": "boolean",
          "x-go-name": "AllowMultiselect"
        },
        "form_element": {
          "$ref": "#/$defs/FormElementType"
        },
        "form_label": {
          "type": "string",
          "x-go-name": "Label"
        },
        "form_label_text": {
          "type": "string",
          "x-go-name": "Text"
        },
        "form_source_array": {
          "type": "object",
          "properties": {},
          "x-go-name": "DropDown"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "FormElementType": {
      "type": "string",
      "description": "FormElementType contains the FromElement type enum",
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "LHTime": {
      "type": "object",
      "description": "LHTime embeds time.Time",
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "State": {
      "type": "string",
      "description": "DefinitionState",
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "Status": {
      "title": "Status ...",
      "type": "object",
      "properties": {
        "details": {
          "$ref": "#/$defs/StatusDetails"
        },
        "prev_state": {
          "$ref": "#/$defs/State"
        },
        "state": {
          "$ref": "#/$defs/State"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "StatusDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "x-go-name": "Code"
        },
        "description": {
          "type": "string",
          "x-go-name": "Description"
        },
        "message": {
          "type": "string",
          "x-go-name": "Message"
        }
      },
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    },
    "TaskPriority": {
      "type": "string",
      "description": "TaskPriority contains the Priority enum",
      "x-go-package": "bitbucket-eng-sjc1.cisco.com/bitbucket/nextg/lib-data/models"
    }
  }
}