{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twenty/json-schema/twenty-task-response-schema.json",
  "title": "TaskResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twenty-tasks-api-openapi.yml#/components/schemas/TaskResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "task": {
          "$ref": "#/$defs/Task"
        }
      }
    }
  },
  "$defs": {
    "ActorMetadata": {
      "type": "object",
      "description": "Record of who created or last updated an object",
      "properties": {
        "source": {
          "type": "string",
          "enum": [
            "EMAIL",
            "CALENDAR",
            "API",
            "IMPORT",
            "MANUAL",
            "SYSTEM",
            "WORKFLOW",
            "WEBHOOK"
          ]
        },
        "workspaceMemberId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "context": {
          "type": [
            "object",
            "null"
          ]
        }
      }
    },
    "RichTextMetadata": {
      "type": "object",
      "description": "Rich text content (block-based)",
      "properties": {
        "blocknote": {
          "type": [
            "string",
            "null"
          ]
        },
        "markdown": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Task": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "deletedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "readOnly": true
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "bodyV2": {
          "allOf": [
            {
              "$ref": "#/$defs/RichTextMetadata"
            }
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "TODO",
            "IN_PROGRESS",
            "DONE"
          ]
        },
        "dueAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "position": {
          "type": "number"
        },
        "assigneeId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "createdBy": {
          "$ref": "#/$defs/ActorMetadata"
        },
        "updatedBy": {
          "$ref": "#/$defs/ActorMetadata"
        }
      }
    }
  }
}