{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onboard-io/json-schema/onboard-io-task-serializer-schema.json",
  "title": "TaskSerializer",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onboard-io-openapi.json#/components/schemas/TaskSerializer",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "record_type": {
      "type": "string",
      "readOnly": true
    },
    "description": {
      "type": "string"
    },
    "description_preview": {
      "type": "string",
      "readOnly": true
    },
    "format": {
      "type": "string",
      "enum": [
        "project",
        "knowledge_base"
      ],
      "description": "Whether this is a Project task/section or a Knowledge Base article/section",
      "x-onboard-source": "serializer-or-model-choices"
    },
    "order": {
      "type": "integer",
      "readOnly": true
    },
    "is_section": {
      "type": "boolean"
    },
    "is_optional": {
      "type": "boolean"
    },
    "client_visibility": {
      "type": "string",
      "enum": [
        "show_when_map_created",
        "hide_when_map_created",
        "show_when_prev_section_complete"
      ],
      "x-onboard-source": "serializer-or-model-choices"
    },
    "due_date_type": {
      "type": "string",
      "enum": [
        "before_target_launch_date",
        "after_target_launch_date",
        "before_created_date",
        "after_created_date",
        "days_after_previous_task_completed",
        "days_after_specific_task_completed",
        "days_after_previous_task_due",
        "days_after_specific_task_due"
      ],
      "x-onboard-source": "serializer-or-model-choices"
    },
    "due_date_days": {
      "type": "integer"
    },
    "due_date_enabled": {
      "type": "boolean"
    },
    "options_advanced": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "move_to": {
      "type": "integer"
    },
    "options": {
      "type": "string"
    },
    "is_internal": {
      "type": "boolean"
    },
    "assign_to_owner": {
      "type": "boolean"
    },
    "estimated_time": {
      "type": "integer"
    },
    "estimated_time_unit": {
      "type": "string",
      "enum": [
        "minutes",
        "hours",
        "days"
      ],
      "x-onboard-source": "serializer-or-model-choices"
    },
    "estimated_time_raw": {
      "type": "integer"
    },
    "forms": {
      "type": "string",
      "readOnly": true
    },
    "time_tracking_enabled": {
      "type": "boolean"
    },
    "assign_to_role": {
      "type": "string"
    },
    "assign_to_role_id": {
      "type": "string"
    },
    "dependencies": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "category": {
      "type": "string",
      "enum": [
        "task",
        "survey",
        "form",
        "meeting",
        "document_signing",
        "training",
        "documentation",
        "chat_bot",
        "fideo_verify"
      ],
      "x-onboard-source": "serializer-or-model-choices"
    },
    "embedded": {
      "type": "string"
    },
    "embedded_url": {
      "type": "string"
    },
    "embedded_option": {
      "type": "string",
      "enum": [
        "url",
        "owner",
        "assignee",
        "map",
        "customer"
      ],
      "x-onboard-source": "serializer-or-model-choices"
    },
    "embedded_panel_title": {
      "type": "string"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "map_types": {
      "type": "string",
      "readOnly": true
    },
    "map_types_ids": {
      "type": "string",
      "readOnly": true
    },
    "is_billable": {
      "type": "boolean"
    },
    "due_date_days_after_specific_task_completed_task_id": {
      "type": "integer"
    },
    "due_date_days_after_specific_task_completed_task": {
      "type": "string",
      "readOnly": true
    },
    "due_date_days_after_specific_task_due_task_id": {
      "type": "integer"
    },
    "due_date_days_after_specific_task_due_task": {
      "type": "string",
      "readOnly": true
    },
    "embedded_url_merge_tag": {
      "type": "string"
    },
    "is_ttv": {
      "type": "boolean",
      "description": "Time to Value task - only one task per project template, global tasks, or roadmap can be marked as TTV"
    },
    "update_tasks": {
      "type": "boolean"
    },
    "update_tasks_notify": {
      "type": "boolean"
    },
    "content_type": {
      "type": "string",
      "enum": [
        "article",
        "toc",
        "changelog",
        "faq"
      ],
      "description": "Knowledge Base page type. Ignored when is_section is True.",
      "x-onboard-source": "serializer-or-model-choices"
    },
    "is_featured": {
      "type": "boolean",
      "description": "Feature this article on the Knowledge Base landing page."
    }
  },
  "required": [
    "name"
  ]
}