{
  "components": {
    "schemas": {
      "AddCommentReactionRequest": {
        "properties": {
          "reaction_type": {
            "type": "string"
          }
        },
        "required": [
          "reaction_type"
        ],
        "type": "object"
      },
      "AddInlineCommentReactionRequest": {
        "properties": {
          "reaction_type": {
            "type": "string"
          }
        },
        "required": [
          "reaction_type"
        ],
        "type": "object"
      },
      "AddInlineCommentRequest": {
        "properties": {
          "body": {
            "nullable": true
          }
        },
        "required": [
          "body"
        ],
        "type": "object"
      },
      "AddSegmentAllocationRequest": {
        "properties": {
          "hours": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "issue_id": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          },
          "week_start": {
            "type": "string"
          }
        },
        "required": [
          "issue_id",
          "user_id",
          "week_start",
          "hours"
        ],
        "type": "object"
      },
      "AppIdentityResponse": {
        "properties": {
          "app_id": {
            "type": "string"
          },
          "app_name": {
            "type": "string"
          },
          "bot_user_id": {
            "type": "string"
          },
          "installation_id": {
            "type": "string"
          },
          "project_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "workspace_id": {
            "type": "string"
          },
          "workspace_name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AssignedIssueResponse": {
        "properties": {
          "assigned_at": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "end_date": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "project_color": {
            "type": "string"
          },
          "project_key": {
            "type": "string"
          },
          "project_name": {
            "type": "string"
          },
          "start_date": {
            "nullable": true,
            "type": "string"
          },
          "status_color": {
            "type": "string"
          },
          "status_name": {
            "type": "string"
          },
          "status_type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AttachmentNotClean": {
        "properties": {
          "error": {
            "type": "string"
          },
          "scan_status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AttachmentResponse": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "scan_status": {
            "type": "string"
          },
          "size_kb": {
            "format": "int32",
            "type": "integer"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "AttachmentURL": {
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "BulkAssignRequest": {
        "properties": {
          "assignee_id": {
            "type": "string"
          },
          "issue_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "required": [
          "issue_ids",
          "assignee_id"
        ],
        "type": "object"
      },
      "BulkMoveIssuesRequest": {
        "properties": {
          "issue_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "next_issue_id": {
            "nullable": true,
            "type": "string"
          },
          "prev_issue_id": {
            "nullable": true,
            "type": "string"
          },
          "target_sprint_id": {
            "type": "string"
          }
        },
        "required": [
          "issue_ids",
          "target_sprint_id"
        ],
        "type": "object"
      },
      "BulkStatusRequest": {
        "properties": {
          "issue_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "status_id": {
            "type": "string"
          }
        },
        "required": [
          "issue_ids",
          "status_id"
        ],
        "type": "object"
      },
      "CommentReactionSummary": {
        "properties": {
          "count": {
            "type": "integer"
          },
          "reaction_type": {
            "type": "string"
          },
          "reactors": {
            "items": {
              "$ref": "#/components/schemas/CommentReactor"
            },
            "nullable": true,
            "type": "array"
          },
          "user_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "CommentReactor": {
        "properties": {
          "avatar": {
            "type": "string"
          },
          "avatar_gradient": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "reacted_at": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CommentResponse": {
        "properties": {
          "body": {
            "nullable": true
          },
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "$ref": "#/components/schemas/UserReference"
          },
          "id": {
            "type": "string"
          },
          "issue_id": {
            "type": "string"
          },
          "parent_comment_id": {
            "nullable": true,
            "type": "string"
          },
          "reactions": {
            "items": {
              "$ref": "#/components/schemas/CommentReactionSummary"
            },
            "nullable": true,
            "type": "array"
          },
          "updated_at": {
            "type": "string"
          },
          "updated_by": {
            "$ref": "#/components/schemas/UserReference"
          }
        },
        "type": "object"
      },
      "CreateCommentRequest": {
        "properties": {
          "body": {
            "nullable": true
          },
          "issue_id": {
            "type": "string"
          },
          "parent_comment_id": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "CreateInlineCommentThreadRequest": {
        "properties": {
          "body": {
            "nullable": true
          },
          "entity_id": {
            "type": "string"
          },
          "entity_type": {
            "type": "string"
          },
          "quoted_text": {
            "type": "string"
          },
          "thread_id": {
            "type": "string"
          }
        },
        "required": [
          "entity_id",
          "entity_type"
        ],
        "type": "object"
      },
      "CreateIssueDependencyRequest": {
        "properties": {
          "dependency_type": {
            "type": "string"
          },
          "from_issue_id": {
            "type": "string"
          },
          "lag_days": {
            "type": "integer"
          },
          "to_issue_id": {
            "type": "string"
          }
        },
        "required": [
          "from_issue_id",
          "to_issue_id"
        ],
        "type": "object"
      },
      "CreateIssueRequest": {
        "properties": {
          "allocated": {
            "type": "string"
          },
          "assignee": {
            "type": "string"
          },
          "assignments": {
            "items": {
              "$ref": "#/components/schemas/IssueAssignmentInput"
            },
            "nullable": true,
            "type": "array"
          },
          "billable": {
            "type": "boolean"
          },
          "budget": {
            "type": "string"
          },
          "color": {
            "nullable": true,
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "end_date": {
            "type": "string"
          },
          "estimated_hours": {
            "type": "string"
          },
          "parent_id": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "reporter": {
            "type": "string"
          },
          "roadmap_item_id": {
            "type": "string"
          },
          "sprint_id": {
            "nullable": true,
            "type": "string"
          },
          "start_date": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "priority",
          "type"
        ],
        "type": "object"
      },
      "CreateProjectMilestoneRequest": {
        "properties": {
          "color": {
            "nullable": true,
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "date"
        ],
        "type": "object"
      },
      "CreateResourceSegmentRequest": {
        "properties": {
          "end_date": {
            "type": "string"
          },
          "issue_id": {
            "type": "string"
          },
          "start_date": {
            "type": "string"
          }
        },
        "required": [
          "issue_id",
          "start_date",
          "end_date"
        ],
        "type": "object"
      },
      "CreateSprintRequest": {
        "properties": {
          "end_date": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "start_date": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "CreateTimelineSnapshotRequest": {
        "properties": {
          "label": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "CreateTimelogRequest": {
        "properties": {
          "color": {
            "type": "string"
          },
          "end_time": {
            "format": "date-time",
            "type": "string"
          },
          "issue_id": {
            "type": "string"
          },
          "start_time": {
            "format": "date-time",
            "type": "string"
          },
          "tz": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "DeleteIssueDependencyRequest": {
        "properties": {
          "from_issue_id": {
            "type": "string"
          },
          "to_issue_id": {
            "type": "string"
          }
        },
        "required": [
          "from_issue_id",
          "to_issue_id"
        ],
        "type": "object"
      },
      "Error": {
        "properties": {
          "code": {
            "description": "Machine-readable error code, when the error has one.",
            "type": "string"
          },
          "data": {
            "description": "Extra context for coded errors.",
            "nullable": true
          },
          "error": {
            "description": "Human-readable error message.",
            "type": "string"
          },
          "errors": {
            "description": "Field errors, present on 422 validation failures.",
            "items": {
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "message": {
            "description": "Same as `error`; present on most errors.",
            "type": "string"
          },
          "status": {
            "description": "HTTP status text.",
            "type": "string"
          },
          "status_code": {
            "description": "HTTP status code.",
            "type": "integer"
          }
        },
        "required": [
          "error",
          "status",
          "status_code"
        ],
        "type": "object"
      },
      "InlineCommentReactionSummary": {
        "properties": {
          "count": {
            "type": "integer"
          },
          "reaction_type": {
            "type": "string"
          },
          "user_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "InlineCommentResponse": {
        "properties": {
          "body": {
            "nullable": true
          },
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "$ref": "#/components/schemas/UserReference"
          },
          "id": {
            "type": "string"
          },
          "reactions": {
            "items": {
              "$ref": "#/components/schemas/InlineCommentReactionSummary"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "InlineCommentStatus": {
        "properties": {
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "InlineCommentThreadResponse": {
        "properties": {
          "comments": {
            "items": {
              "$ref": "#/components/schemas/InlineCommentResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "created_at": {
            "type": "string"
          },
          "entity_id": {
            "type": "string"
          },
          "entity_type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "quoted_text": {
            "type": "string"
          },
          "resolved": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "IssueAssignment": {
        "properties": {
          "estimated_hours": {
            "nullable": true,
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/UserReference"
          }
        },
        "type": "object"
      },
      "IssueAssignmentInput": {
        "properties": {
          "estimated_hours": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "IssueDependencyResponse": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "dependency_type": {
            "type": "string"
          },
          "from_issue_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "lag_days": {
            "type": "integer"
          },
          "to_issue_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "IssueLabelResponse": {
        "properties": {
          "color": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "IssueReport": {
        "properties": {
          "allocated_across_tasks": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "effective_allocations": {
            "items": {
              "$ref": "#/components/schemas/ResourcedAllocation"
            },
            "nullable": true,
            "type": "array"
          },
          "effective_hours": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "left_to_allocate": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "own_allocated": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "own_estimated_hours": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "own_spent_in_money": {
            "format": "double",
            "type": "number"
          },
          "own_spent_in_time": {
            "format": "double",
            "type": "number"
          },
          "resourced": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "resourced_allocations": {
            "items": {
              "$ref": "#/components/schemas/ResourcedAllocation"
            },
            "nullable": true,
            "type": "array"
          },
          "resourced_from_now": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "resourced_hours": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "resourced_hours_from_now": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "spent_allocations": {
            "items": {
              "$ref": "#/components/schemas/SpentAllocation"
            },
            "nullable": true,
            "type": "array"
          },
          "spent_in_money": {
            "format": "double",
            "type": "number"
          },
          "spent_in_time": {
            "format": "double",
            "type": "number"
          },
          "total_budget": {
            "format": "double",
            "nullable": true,
            "type": "number"
          },
          "total_estimated_hours": {
            "format": "double",
            "nullable": true,
            "type": "number"
          }
        },
        "type": "object"
      },
      "IssueResponse": {
        "properties": {
          "allocated": {
            "nullable": true,
            "type": "string"
          },
          "archived": {
            "type": "boolean"
          },
          "assignee": {
            "$ref": "#/components/schemas/UserReference"
          },
          "assignments": {
            "items": {
              "$ref": "#/components/schemas/IssueAssignment"
            },
            "nullable": true,
            "type": "array"
          },
          "billable": {
            "type": "boolean"
          },
          "budget": {
            "nullable": true,
            "type": "string"
          },
          "children_count": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "color": {
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "$ref": "#/components/schemas/UserReference"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "nullable": true,
            "type": "string"
          },
          "end_time": {
            "nullable": true,
            "type": "string"
          },
          "estimated_completion": {
            "nullable": true,
            "type": "integer"
          },
          "fixed_cost": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "invoice_number": {
            "nullable": true,
            "type": "string"
          },
          "is_report_ready": {
            "type": "boolean"
          },
          "labels": {
            "items": {
              "$ref": "#/components/schemas/IssueLabelResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "live_generation": {
            "type": "string"
          },
          "parent_budget_summary": {
            "$ref": "#/components/schemas/ParentBudgetSummary"
          },
          "parent_id": {
            "nullable": true,
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "report": {
            "$ref": "#/components/schemas/IssueReport"
          },
          "reporter": {
            "$ref": "#/components/schemas/UserReference"
          },
          "sprint": {
            "$ref": "#/components/schemas/SprintIDWithOrderIndex"
          },
          "start_date": {
            "nullable": true,
            "type": "string"
          },
          "start_time": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "sync_seq": {
            "format": "int64",
            "type": "integer"
          },
          "timeline_order": {
            "nullable": true,
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "updated_by": {
            "$ref": "#/components/schemas/UserReference"
          }
        },
        "type": "object"
      },
      "IssueSearchResponse": {
        "properties": {
          "code": {
            "type": "string"
          },
          "end_date": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "project_color": {
            "type": "string"
          },
          "project_key": {
            "type": "string"
          },
          "project_name": {
            "type": "string"
          },
          "status_color": {
            "type": "string"
          },
          "status_name": {
            "type": "string"
          },
          "status_type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "IssuesByProjectsRequest": {
        "properties": {
          "exclude_pending_deletion": {
            "type": "boolean"
          },
          "exclude_user_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "filters": {
            "nullable": true
          },
          "ids_only": {
            "type": "boolean"
          },
          "include_invites": {
            "type": "boolean"
          },
          "label_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "limit": {
            "nullable": true,
            "type": "integer"
          },
          "page": {
            "nullable": true,
            "type": "integer"
          },
          "project_keys": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "query": {
            "nullable": true,
            "type": "string"
          },
          "role_exclude": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "role_slugs": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "sort_by": {
            "nullable": true,
            "type": "string"
          },
          "sort_dir": {
            "nullable": true,
            "type": "string"
          },
          "statuses": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "required": [
          "project_keys"
        ],
        "type": "object"
      },
      "LabelResponse": {
        "properties": {
          "color": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "$ref": "#/components/schemas/UserReference"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "updated_by": {
            "$ref": "#/components/schemas/UserReference"
          }
        },
        "type": "object"
      },
      "MemberIDsPage": {
        "properties": {
          "data": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "limit": {
            "type": "integer"
          },
          "page": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "MemberLabel": {
        "properties": {
          "color": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "MemberListItem": {
        "properties": {
          "avatar_gradient": {
            "type": "string"
          },
          "contract_end_date": {
            "type": "string"
          },
          "contract_start_date": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "has_salary": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "invited_at": {
            "type": "string"
          },
          "is_expired": {
            "type": "boolean"
          },
          "labels": {
            "items": {
              "$ref": "#/components/schemas/MemberLabel"
            },
            "nullable": true,
            "type": "array"
          },
          "rate_card_id": {
            "type": "string"
          },
          "rate_card_name": {
            "type": "string"
          },
          "role_color": {
            "type": "string"
          },
          "role_id": {
            "type": "string"
          },
          "role_name": {
            "type": "string"
          },
          "role_slug": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "user_avatar": {
            "type": "string"
          },
          "user_email": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          },
          "user_name": {
            "type": "string"
          },
          "workspace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "MemberListPage": {
        "properties": {
          "counts": {
            "$ref": "#/components/schemas/MemberStatusCounts"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/MemberListItem"
            },
            "nullable": true,
            "type": "array"
          },
          "limit": {
            "type": "integer"
          },
          "page": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "MemberStatusCounts": {
        "properties": {
          "active": {
            "type": "integer"
          },
          "pending": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "Message": {
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "MyMembership": {
        "properties": {
          "address": {
            "type": "string"
          },
          "avatar_gradient": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "contract_end_date": {
            "type": "string"
          },
          "contract_start_date": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "date_of_birth": {
            "type": "string"
          },
          "has_salary": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "phone_number": {
            "type": "string"
          },
          "rate_card_id": {
            "type": "string"
          },
          "rate_card_name": {
            "type": "string"
          },
          "role_color": {
            "type": "string"
          },
          "role_id": {
            "type": "string"
          },
          "role_name": {
            "type": "string"
          },
          "role_slug": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "user_avatar": {
            "type": "string"
          },
          "user_email": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          },
          "user_name": {
            "type": "string"
          },
          "workspace_id": {
            "type": "string"
          },
          "zip_code": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PaginationAndFilters": {
        "properties": {
          "exclude_pending_deletion": {
            "type": "boolean"
          },
          "exclude_user_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "filters": {
            "nullable": true
          },
          "ids_only": {
            "type": "boolean"
          },
          "include_invites": {
            "type": "boolean"
          },
          "label_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "limit": {
            "nullable": true,
            "type": "integer"
          },
          "page": {
            "nullable": true,
            "type": "integer"
          },
          "query": {
            "nullable": true,
            "type": "string"
          },
          "role_exclude": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "role_slugs": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "sort_by": {
            "nullable": true,
            "type": "string"
          },
          "sort_dir": {
            "nullable": true,
            "type": "string"
          },
          "statuses": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "ParentBudgetSummary": {
        "properties": {
          "allocated_across_tasks": {
            "format": "double",
            "type": "number"
          },
          "left_to_allocate": {
            "format": "double",
            "type": "number"
          },
          "parent_budget": {
            "format": "double",
            "type": "number"
          },
          "parent_code": {
            "type": "string"
          },
          "parent_title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProjectBookmarkResponse": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProjectFileResponse": {
        "properties": {
          "content_type": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "$ref": "#/components/schemas/UserReference"
          },
          "filename": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "scan_status": {
            "type": "string"
          },
          "size_kb": {
            "format": "int32",
            "type": "integer"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProjectHealthCheckItem": {
        "properties": {
          "done": {
            "type": "boolean"
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProjectHealthMetric": {
        "properties": {
          "count": {
            "type": "integer"
          },
          "label": {
            "type": "string"
          },
          "progress": {
            "type": "boolean"
          },
          "tooltip": {
            "type": "string"
          },
          "total": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ProjectHealthResponse": {
        "properties": {
          "checklist": {
            "items": {
              "$ref": "#/components/schemas/ProjectHealthCheckItem"
            },
            "nullable": true,
            "type": "array"
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/ProjectHealthMetric"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "ProjectMemberResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "project_member_id": {
            "type": "string"
          },
          "removal_blocked_reason": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/ProjectRoleResponse"
          },
          "user": {
            "$ref": "#/components/schemas/UserResponse"
          },
          "workspace_role": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProjectMilestoneResponse": {
        "properties": {
          "color": {
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "updated_at": {
            "nullable": true,
            "type": "string"
          },
          "updated_by": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProjectResponse": {
        "properties": {
          "archived_at": {
            "nullable": true,
            "type": "string"
          },
          "archived_by": {
            "$ref": "#/components/schemas/UserResponse"
          },
          "color": {
            "type": "string"
          },
          "completed_tasks": {
            "type": "integer"
          },
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "deadline": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_archived": {
            "type": "boolean"
          },
          "is_pinned": {
            "type": "boolean"
          },
          "key": {
            "type": "string"
          },
          "labels": {
            "items": {
              "$ref": "#/components/schemas/LabelResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/UserResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "project_lead": {
            "$ref": "#/components/schemas/UserResponse"
          },
          "project_manager": {
            "$ref": "#/components/schemas/UserResponse"
          },
          "project_type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "template": {
            "type": "string"
          },
          "total_tasks": {
            "type": "integer"
          },
          "updated_at": {
            "type": "string"
          },
          "updated_by": {
            "type": "string"
          },
          "vision": {
            "nullable": true,
            "type": "string"
          },
          "workflow_id": {
            "type": "string"
          },
          "workspace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProjectRoleResponse": {
        "properties": {
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProjectSectionResponse": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_enabled": {
            "type": "boolean"
          },
          "project_id": {
            "type": "string"
          },
          "section_key": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ReassignSegmentAllocationRequest": {
        "properties": {
          "from_user_id": {
            "type": "string"
          },
          "to_user_id": {
            "type": "string"
          }
        },
        "required": [
          "from_user_id",
          "to_user_id"
        ],
        "type": "object"
      },
      "ResourceSegmentAllocationResponse": {
        "properties": {
          "hours": {
            "format": "double",
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ResourceSegmentDeleted": {
        "properties": {
          "deleted": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ResourceSegmentResponse": {
        "properties": {
          "allocations": {
            "items": {
              "$ref": "#/components/schemas/ResourceSegmentAllocationResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "created_at": {
            "type": "string"
          },
          "end_date": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "issue_id": {
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "start_date": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ResourcedAllocation": {
        "properties": {
          "hours": {
            "format": "double",
            "type": "number"
          },
          "user": {
            "$ref": "#/components/schemas/UserReference"
          }
        },
        "type": "object"
      },
      "ResourcingAllocationsQuery": {
        "properties": {
          "end_date": {
            "type": "string"
          },
          "exclude_project_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "exclude_rate_card_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "exclude_user_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "include_unallocated": {
            "type": "boolean"
          },
          "limit": {
            "type": "integer"
          },
          "page": {
            "type": "integer"
          },
          "project_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "rate_card_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          },
          "search": {
            "type": "string"
          },
          "start_date": {
            "type": "string"
          },
          "user_ids": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "required": [
          "start_date",
          "end_date"
        ],
        "type": "object"
      },
      "ResourcingAllocationsResponse": {
        "properties": {
          "end_date": {
            "type": "string"
          },
          "has_more": {
            "type": "boolean"
          },
          "limit": {
            "type": "integer"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/ResourcingMemberAllocationResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "page": {
            "type": "integer"
          },
          "start_date": {
            "type": "string"
          },
          "total": {
            "type": "integer"
          },
          "workspace_has_allocations": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ResourcingDayAllocationResponse": {
        "properties": {
          "date": {
            "type": "string"
          },
          "hours": {
            "format": "double",
            "type": "number"
          }
        },
        "type": "object"
      },
      "ResourcingMemberAllocationResponse": {
        "properties": {
          "avatar": {
            "type": "string"
          },
          "avatar_gradient": {
            "type": "string"
          },
          "days": {
            "items": {
              "$ref": "#/components/schemas/ResourcingDayAllocationResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/ResourcingProjectAllocationResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "rate_card_name": {
            "type": "string"
          },
          "total_hours": {
            "format": "double",
            "type": "number"
          }
        },
        "type": "object"
      },
      "ResourcingProjectAllocationResponse": {
        "properties": {
          "color": {
            "type": "string"
          },
          "days": {
            "items": {
              "$ref": "#/components/schemas/ResourcingDayAllocationResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RestoreTimelineSnapshotResponse": {
        "properties": {
          "auto_snapshot_id": {
            "type": "string"
          },
          "dependencies_restored": {
            "type": "integer"
          },
          "issues_skipped": {
            "type": "integer"
          },
          "issues_updated": {
            "type": "integer"
          },
          "message": {
            "type": "string"
          },
          "milestones_restored": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "RoadmapItemLabelResponse": {
        "properties": {
          "color": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RoadmapItemResponse": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "$ref": "#/components/schemas/UserReference"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "labels": {
            "items": {
              "$ref": "#/components/schemas/RoadmapItemLabelResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "linked_issue": {
            "$ref": "#/components/schemas/RoadmapLinkedIssue"
          },
          "live_generation": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "sync_seq": {
            "format": "int64",
            "type": "integer"
          },
          "target_date": {
            "nullable": true,
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "updated_by": {
            "$ref": "#/components/schemas/UserReference"
          }
        },
        "type": "object"
      },
      "RoadmapLinkedIssue": {
        "properties": {
          "code": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/RoadmapLinkedIssueStatus"
          }
        },
        "type": "object"
      },
      "RoadmapLinkedIssueStatus": {
        "properties": {
          "color": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SpentAllocation": {
        "properties": {
          "hours": {
            "format": "double",
            "type": "number"
          },
          "user": {
            "$ref": "#/components/schemas/UserReference"
          }
        },
        "type": "object"
      },
      "SprintIDWithOrderIndex": {
        "properties": {
          "order_index": {
            "type": "string"
          },
          "sprint_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SprintIssuesAssigned": {
        "properties": {
          "assigned": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SprintIssuesMoved": {
        "properties": {
          "moved": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SprintIssuesStatusUpdated": {
        "properties": {
          "updated": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SprintResponse": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "done_count": {
            "type": "integer"
          },
          "end_date": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_backlog": {
            "type": "boolean"
          },
          "issue_count": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "start_date": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "Status": {
        "properties": {
          "color": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TimelineShareResponse": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "created_by_name": {
            "type": "string"
          },
          "is_public": {
            "type": "boolean"
          },
          "url": {
            "type": "string"
          },
          "url_token": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TimelineSnapshotData": {
        "properties": {
          "dependencies": {
            "items": {
              "$ref": "#/components/schemas/TimelineSnapshotDependency"
            },
            "nullable": true,
            "type": "array"
          },
          "issues": {
            "items": {
              "$ref": "#/components/schemas/TimelineSnapshotIssue"
            },
            "nullable": true,
            "type": "array"
          },
          "milestones": {
            "items": {
              "$ref": "#/components/schemas/TimelineSnapshotMilestone"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "TimelineSnapshotDependency": {
        "properties": {
          "dependency_type": {
            "type": "string"
          },
          "from_issue_id": {
            "type": "string"
          },
          "lag_days": {
            "type": "integer"
          },
          "to_issue_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TimelineSnapshotIssue": {
        "properties": {
          "assignee_id": {
            "nullable": true,
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "color": {
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "nullable": true,
            "type": "string"
          },
          "end_time": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "parent_id": {
            "nullable": true,
            "type": "string"
          },
          "start_date": {
            "nullable": true,
            "type": "string"
          },
          "start_time": {
            "nullable": true,
            "type": "string"
          },
          "status_id": {
            "nullable": true,
            "type": "string"
          },
          "timeline_order": {
            "nullable": true,
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TimelineSnapshotListItem": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "created_by_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_auto": {
            "type": "boolean"
          },
          "label": {
            "nullable": true,
            "type": "string"
          },
          "project_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TimelineSnapshotMilestone": {
        "properties": {
          "color": {
            "nullable": true,
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TimelineSnapshotResponse": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_auto": {
            "type": "boolean"
          },
          "label": {
            "nullable": true,
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "snapshot_data": {
            "$ref": "#/components/schemas/TimelineSnapshotData"
          }
        },
        "type": "object"
      },
      "TimelogListResponse": {
        "properties": {
          "has_more": {
            "type": "boolean"
          },
          "limit": {
            "type": "integer"
          },
          "page": {
            "type": "integer"
          },
          "timelogs": {
            "items": {
              "$ref": "#/components/schemas/TimelogResponse"
            },
            "nullable": true,
            "type": "array"
          },
          "total": {
            "format": "int64",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "TimelogResponse": {
        "properties": {
          "color": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "end_time": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "issue_code": {
            "type": "string"
          },
          "issue_id": {
            "type": "string"
          },
          "issue_invoice_number": {
            "nullable": true,
            "type": "string"
          },
          "issue_title": {
            "type": "string"
          },
          "project_key": {
            "type": "string"
          },
          "rate_card_id": {
            "nullable": true,
            "type": "string"
          },
          "rate_per_hour": {
            "nullable": true,
            "type": "string"
          },
          "start_time": {
            "format": "date-time",
            "type": "string"
          },
          "tz": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateCommentRequest": {
        "properties": {
          "body": {
            "nullable": true
          }
        },
        "type": "object"
      },
      "UpdateIssueLabelRequest": {
        "properties": {
          "labels": {
            "items": {
              "type": "string"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "UpdateIssueRequest": {
        "properties": {
          "allocated": {
            "nullable": true,
            "type": "string"
          },
          "assignee_id": {
            "nullable": true,
            "type": "string"
          },
          "assignments": {
            "items": {
              "$ref": "#/components/schemas/IssueAssignmentInput"
            },
            "nullable": true,
            "type": "array"
          },
          "billable": {
            "nullable": true,
            "type": "boolean"
          },
          "budget": {
            "nullable": true,
            "type": "string"
          },
          "color": {
            "nullable": true,
            "type": "string"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "end_date": {
            "nullable": true,
            "type": "string"
          },
          "end_time": {
            "nullable": true,
            "type": "string"
          },
          "estimated_completion": {
            "nullable": true,
            "type": "string"
          },
          "estimated_hours": {
            "nullable": true,
            "type": "string"
          },
          "fixed_cost": {
            "nullable": true,
            "type": "string"
          },
          "parent_id": {
            "nullable": true,
            "type": "string"
          },
          "priority": {
            "nullable": true,
            "type": "string"
          },
          "reporter_id": {
            "nullable": true,
            "type": "string"
          },
          "start_date": {
            "nullable": true,
            "type": "string"
          },
          "start_time": {
            "nullable": true,
            "type": "string"
          },
          "status_id": {
            "nullable": true,
            "type": "string"
          },
          "timeline_order": {
            "nullable": true,
            "type": "string"
          },
          "title": {
            "nullable": true,
            "type": "string"
          },
          "type": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateProjectMilestoneRequest": {
        "properties": {
          "color": {
            "nullable": true,
            "type": "string"
          },
          "date": {
            "nullable": true,
            "type": "string"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "nullable": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateResourceSegmentRequest": {
        "properties": {
          "end_date": {
            "type": "string"
          },
          "start_date": {
            "type": "string"
          }
        },
        "required": [
          "start_date",
          "end_date"
        ],
        "type": "object"
      },
      "UpdateSprintRequest": {
        "properties": {
          "end_date": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "start_date": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "UpdateTimelogRequest": {
        "properties": {
          "color": {
            "type": "string"
          },
          "end_time": {
            "format": "date-time",
            "type": "string"
          },
          "start_time": {
            "format": "date-time",
            "type": "string"
          },
          "tz": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpsertSegmentAllocationRequest": {
        "properties": {
          "hours": {
            "format": "double",
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "hours"
        ],
        "type": "object"
      },
      "UserReference": {
        "properties": {
          "avatar": {
            "type": "string"
          },
          "avatar_gradient": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "UserResponse": {
        "properties": {
          "avatar_gradient": {
            "type": "string"
          },
          "avatar_url": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "deletion_requested_at": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "industry": {
            "type": "string"
          },
          "is_business": {
            "nullable": true,
            "type": "boolean"
          },
          "last_name": {
            "type": "string"
          },
          "onboarding_completed": {
            "type": "boolean"
          },
          "scheduled_purge_at": {
            "type": "string"
          },
          "theme": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "WorkflowCreate": {
        "properties": {
          "description": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status_mappings": {
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true,
            "type": "object"
          },
          "statuses": {
            "items": {
              "$ref": "#/components/schemas/WorkflowStatus"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "WorkflowResponse": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "project_count": {
            "type": "integer"
          },
          "statuses": {
            "items": {
              "$ref": "#/components/schemas/WorkflowStatus"
            },
            "nullable": true,
            "type": "array"
          },
          "updated_at": {
            "type": "string"
          },
          "updated_by": {
            "type": "string"
          },
          "workspace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "WorkflowStatus": {
        "properties": {
          "color": {
            "type": "string"
          },
          "height": {
            "format": "double",
            "type": "number"
          },
          "icon": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "order": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          },
          "width": {
            "format": "double",
            "type": "number"
          },
          "x": {
            "format": "double",
            "type": "number"
          },
          "y": {
            "format": "double",
            "type": "number"
          }
        },
        "type": "object"
      },
      "WorkflowStatusOrder": {
        "properties": {
          "order": {
            "type": "integer"
          },
          "status_id": {
            "type": "string"
          }
        },
        "required": [
          "status_id",
          "order"
        ],
        "type": "object"
      },
      "WorkflowStatusReference": {
        "properties": {
          "color": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "WorkflowSummary": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_default": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "project_count": {
            "type": "integer"
          },
          "status_count": {
            "type": "integer"
          },
          "updated_at": {
            "type": "string"
          },
          "updated_by": {
            "type": "string"
          },
          "updated_by_avatar": {
            "type": "string"
          },
          "updated_by_avatar_gradient": {
            "type": "string"
          },
          "updated_by_email": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "oauth2": {
        "description": "Application access tokens (`tr_oat_…`). Use the client credentials grant for server-to-server scripts, or the authorization code grant with PKCE (S256) to act on behalf of an installation.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://trellisapp.co.uk/oauth/authorize",
            "refreshUrl": "https://trellisapp.co.uk/oauth/token",
            "scopes": {
              "issues:read": "View issues, comments, sprints, workflows, labels, and attachments",
              "issues:write": "Create, update, and delete issues, comments, sprints, and attachments",
              "projects:read": "View projects, their issues, roadmaps, and timeline history",
              "timeline:read": "View timeline milestones and version history",
              "timeline:write": "Create, update, and delete timeline milestones and versions",
              "timelogs:read": "View time logged by members of this workspace on the projects this application can access",
              "timelogs:write": "Log, edit, and delete time on behalf of members of this workspace, on the projects this application can access",
              "workflows:write": "Create, rename, reorder, and delete workflows and the statuses issues move through",
              "workspace:read": "View basic information about you, the workspace, and its members"
            },
            "tokenUrl": "https://trellisapp.co.uk/oauth/token"
          },
          "clientCredentials": {
            "scopes": {
              "issues:read": "View issues, comments, sprints, workflows, labels, and attachments",
              "issues:write": "Create, update, and delete issues, comments, sprints, and attachments",
              "projects:read": "View projects, their issues, roadmaps, and timeline history",
              "timeline:read": "View timeline milestones and version history",
              "timeline:write": "Create, update, and delete timeline milestones and versions",
              "timelogs:read": "View time logged by members of this workspace on the projects this application can access",
              "timelogs:write": "Log, edit, and delete time on behalf of members of this workspace, on the projects this application can access",
              "workflows:write": "Create, rename, reorder, and delete workflows and the statuses issues move through",
              "workspace:read": "View basic information about you, the workspace, and its members"
            },
            "tokenUrl": "https://trellisapp.co.uk/oauth/token"
          }
        },
        "type": "oauth2"
      }
    }
  },
  "info": {
    "description": "REST API for Trellis applications. Every operation authenticates with an application access token and requires one of the scopes listed under its security requirements.",
    "title": "Trellis API",
    "version": "1.0.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/workspace/{handle}/app": {
      "get": {
        "operationId": "getAppIdentity",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppIdentityResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "timeline:read"
            ]
          },
          {
            "oauth2": [
              "timeline:write"
            ]
          },
          {
            "oauth2": [
              "timelogs:read"
            ]
          },
          {
            "oauth2": [
              "timelogs:write"
            ]
          },
          {
            "oauth2": [
              "workflows:write"
            ]
          },
          {
            "oauth2": [
              "workspace:read"
            ]
          }
        ],
        "summary": "Get the calling application's identity and grants",
        "tags": [
          "Application"
        ],
        "x-required-scopes": [
          "issues:read",
          "issues:write",
          "projects:read",
          "timeline:read",
          "timeline:write",
          "timelogs:read",
          "timelogs:write",
          "workflows:write",
          "workspace:read"
        ]
      }
    },
    "/workspace/{handle}/comments/{id}": {
      "delete": {
        "operationId": "deleteComment",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Confirmation message.",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Delete a comment",
        "tags": [
          "Comments"
        ],
        "x-required-scopes": [
          "comments:write"
        ]
      },
      "put": {
        "operationId": "updateComment",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Edit a comment",
        "tags": [
          "Comments"
        ],
        "x-required-scopes": [
          "comments:write"
        ]
      }
    },
    "/workspace/{handle}/comments/{id}/reactions": {
      "post": {
        "operationId": "addCommentReaction",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCommentReactionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "React to a comment",
        "tags": [
          "Comments"
        ],
        "x-required-scopes": [
          "comments:write"
        ]
      }
    },
    "/workspace/{handle}/comments/{id}/reactions/{reactionType}": {
      "delete": {
        "operationId": "removeCommentReaction",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "reactionType",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Remove the caller's reaction from a comment",
        "tags": [
          "Comments"
        ],
        "x-required-scopes": [
          "comments:write"
        ]
      }
    },
    "/workspace/{handle}/inline-comments/comments/{commentId}/reactions": {
      "post": {
        "operationId": "addInlineCommentReaction",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "commentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddInlineCommentReactionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineCommentStatus"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "React to an inline comment",
        "tags": [
          "Inline comments"
        ],
        "x-required-scopes": [
          "comments:write"
        ]
      }
    },
    "/workspace/{handle}/inline-comments/comments/{commentId}/reactions/{reactionType}": {
      "delete": {
        "operationId": "removeInlineCommentReaction",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "commentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "reactionType",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineCommentStatus"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Remove the caller's reaction from an inline comment",
        "tags": [
          "Inline comments"
        ],
        "x-required-scopes": [
          "comments:write"
        ]
      }
    },
    "/workspace/{handle}/inline-comments/threads": {
      "post": {
        "operationId": "createInlineCommentThread",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInlineCommentThreadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineCommentThreadResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Start an inline comment thread",
        "tags": [
          "Inline comments"
        ],
        "x-required-scopes": [
          "comments:write"
        ]
      }
    },
    "/workspace/{handle}/inline-comments/threads/{threadId}/comments": {
      "post": {
        "operationId": "addInlineComment",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "threadId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddInlineCommentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineCommentThreadResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Reply to an inline comment thread",
        "tags": [
          "Inline comments"
        ],
        "x-required-scopes": [
          "comments:write"
        ]
      }
    },
    "/workspace/{handle}/inline-comments/threads/{threadId}/resolve": {
      "post": {
        "operationId": "resolveInlineCommentThread",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "threadId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineCommentStatus"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Resolve an inline comment thread",
        "tags": [
          "Inline comments"
        ],
        "x-required-scopes": [
          "comments:write"
        ]
      }
    },
    "/workspace/{handle}/inline-comments/{entityType}/{entityId}": {
      "get": {
        "operationId": "listInlineCommentThreads",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityType",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/InlineCommentThreadResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List inline comment threads on an entity",
        "tags": [
          "Inline comments"
        ],
        "x-required-scopes": [
          "comments:read"
        ]
      }
    },
    "/workspace/{handle}/issues/assigned-to-me": {
      "get": {
        "operationId": "listIssuesAssignedToMe",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Maximum number of issues to return, 1 to 50. Defaults to 10.",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AssignedIssueResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List issues recently assigned to the caller",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:read"
        ]
      }
    },
    "/workspace/{handle}/issues/by-projects": {
      "post": {
        "operationId": "listIssuesByProjects",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuesByProjectsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Unfiltered item count, where the endpoint reports one. Omitted when zero.",
                      "type": "integer"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/IssueResponse"
                      },
                      "nullable": true,
                      "type": "array"
                    },
                    "limit": {
                      "description": "Page size used for this response. Omitted when zero.",
                      "type": "integer"
                    },
                    "page": {
                      "description": "Current page, starting at 1. Omitted when zero.",
                      "type": "integer"
                    },
                    "total": {
                      "description": "Number of items matching the filters. Omitted when zero.",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List issues across several projects",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:read"
        ]
      }
    },
    "/workspace/{handle}/issues/search": {
      "get": {
        "operationId": "searchIssues",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search text matched against issue codes and titles. At most 200 characters.",
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Maximum number of issues to return, 1 to 50. Defaults to 20.",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IssueSearchResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Search issues across the workspace",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:read"
        ]
      }
    },
    "/workspace/{handle}/issues/{issueId}/comments": {
      "get": {
        "operationId": "listIssueComments",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Issue UUID. The issue's code, e.g. `T001-42`, is not accepted here.",
            "in": "path",
            "name": "issueId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page to return, starting at 1. Defaults to 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Page size, 1 to 100. Defaults to 20.",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Unfiltered item count, where the endpoint reports one. Omitted when zero.",
                      "type": "integer"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/CommentResponse"
                      },
                      "nullable": true,
                      "type": "array"
                    },
                    "limit": {
                      "description": "Page size used for this response. Omitted when zero.",
                      "type": "integer"
                    },
                    "page": {
                      "description": "Current page, starting at 1. Omitted when zero.",
                      "type": "integer"
                    },
                    "total": {
                      "description": "Number of items matching the filters. Omitted when zero.",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List an issue's comments",
        "tags": [
          "Comments"
        ],
        "x-required-scopes": [
          "comments:read"
        ]
      },
      "post": {
        "operationId": "createComment",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "issueId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCommentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Comment on an issue",
        "tags": [
          "Comments"
        ],
        "x-required-scopes": [
          "comments:write"
        ]
      }
    },
    "/workspace/{handle}/labels/all-by-workspace": {
      "post": {
        "operationId": "listLabels",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaginationAndFilters"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Unfiltered item count, where the endpoint reports one. Omitted when zero.",
                      "type": "integer"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/LabelResponse"
                      },
                      "nullable": true,
                      "type": "array"
                    },
                    "limit": {
                      "description": "Page size used for this response. Omitted when zero.",
                      "type": "integer"
                    },
                    "page": {
                      "description": "Current page, starting at 1. Omitted when zero.",
                      "type": "integer"
                    },
                    "total": {
                      "description": "Number of items matching the filters. Omitted when zero.",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List the workspace's labels",
        "tags": [
          "Labels"
        ],
        "x-required-scopes": [
          "labels:read"
        ]
      }
    },
    "/workspace/{handle}/labels/{id}": {
      "get": {
        "operationId": "getLabel",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Get a label",
        "tags": [
          "Labels"
        ],
        "x-required-scopes": [
          "labels:read"
        ]
      }
    },
    "/workspace/{handle}/projects": {
      "get": {
        "operationId": "listProjects",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search text matched against project names and keys.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page to return, starting at 1. Defaults to 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Page size, 1 to 100. Defaults to 10.",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Field to sort by: `name`, `created_at` or `updated_at`. Defaults to `updated_at`.",
            "in": "query",
            "name": "sort_by",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Sort direction, `ASC` or `DESC`. Defaults to `DESC`.",
            "in": "query",
            "name": "sort_dir",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Leave archived projects out. Defaults to true.",
            "in": "query",
            "name": "exclude_archived",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Return only archived projects. Overrides `exclude_archived`.",
            "in": "query",
            "name": "only_archived",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Return only projects the caller is a member of.",
            "in": "query",
            "name": "only_mine",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Label IDs to filter by. Repeat the parameter, or pass one comma-separated value.",
            "explode": true,
            "in": "query",
            "name": "label_ids",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Project stages to filter by. Repeat the parameter, or pass one comma-separated value.",
            "explode": true,
            "in": "query",
            "name": "stages",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Unfiltered item count, where the endpoint reports one. Omitted when zero.",
                      "type": "integer"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/ProjectResponse"
                      },
                      "nullable": true,
                      "type": "array"
                    },
                    "limit": {
                      "description": "Page size used for this response. Omitted when zero.",
                      "type": "integer"
                    },
                    "page": {
                      "description": "Current page, starting at 1. Omitted when zero.",
                      "type": "integer"
                    },
                    "total": {
                      "description": "Number of items matching the filters. Omitted when zero.",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List the workspace's projects",
        "tags": [
          "Projects"
        ],
        "x-required-scopes": [
          "projects:read"
        ]
      }
    },
    "/workspace/{handle}/projects/{key}": {
      "get": {
        "operationId": "getProject",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Get a project",
        "tags": [
          "Projects"
        ],
        "x-required-scopes": [
          "projects:read"
        ]
      }
    },
    "/workspace/{handle}/projects/{key}/bookmarks": {
      "get": {
        "operationId": "listProjectBookmarks",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ProjectBookmarkResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List a project's bookmarks",
        "tags": [
          "Projects"
        ],
        "x-required-scopes": [
          "projects:read"
        ]
      }
    },
    "/workspace/{handle}/projects/{key}/health": {
      "get": {
        "operationId": "getProjectHealth",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectHealthResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Get a project's health metrics and setup checklist",
        "tags": [
          "Projects"
        ],
        "x-required-scopes": [
          "projects:read"
        ]
      }
    },
    "/workspace/{handle}/projects/{key}/members": {
      "get": {
        "operationId": "listProjectMembers",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ProjectMemberResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List a project's members with their roles",
        "tags": [
          "Projects"
        ],
        "x-required-scopes": [
          "projects:read"
        ]
      }
    },
    "/workspace/{handle}/projects/{projectKey}/attachments": {
      "post": {
        "operationId": "uploadAttachment",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "projectKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "The file to upload. The maximum size depends on the workspace plan.",
                    "format": "binary",
                    "type": "string"
                  },
                  "reference_id": {
                    "description": "ID of the roadmap item the upload belongs to, when `reference_type` is `roadmap_item`.",
                    "type": "string"
                  },
                  "reference_type": {
                    "description": "Set to `roadmap_item` with `reference_id` when a viewer uploads to a roadmap item they created.",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Upload a file to a project",
        "tags": [
          "Attachments"
        ],
        "x-required-scopes": [
          "attachments:write"
        ]
      }
    },
    "/workspace/{handle}/projects/{projectKey}/attachments/list": {
      "post": {
        "operationId": "listProjectAttachments",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "projectKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaginationAndFilters"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Unfiltered item count, where the endpoint reports one. Omitted when zero.",
                      "type": "integer"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/ProjectFileResponse"
                      },
                      "nullable": true,
                      "type": "array"
                    },
                    "limit": {
                      "description": "Page size used for this response. Omitted when zero.",
                      "type": "integer"
                    },
                    "page": {
                      "description": "Current page, starting at 1. Omitted when zero.",
                      "type": "integer"
                    },
                    "total": {
                      "description": "Number of items matching the filters. Omitted when zero.",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List a project's files",
        "tags": [
          "Attachments"
        ],
        "x-required-scopes": [
          "attachments:read"
        ]
      }
    },
    "/workspace/{handle}/projects/{projectKey}/attachments/{id}": {
      "delete": {
        "operationId": "deleteAttachment",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "projectKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Delete a project file",
        "tags": [
          "Attachments"
        ],
        "x-required-scopes": [
          "attachments:write"
        ]
      }
    },
    "/workspace/{handle}/projects/{projectKey}/attachments/{id}/url": {
      "get": {
        "operationId": "getAttachmentUrl",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "projectKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set to `1` or `true` to get a URL that downloads the file as an attachment with its original filename.",
            "in": "query",
            "name": "download",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentURL"
                }
              }
            },
            "description": "OK"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentNotClean"
                }
              }
            },
            "description": "Conflict"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Get a short-lived download URL for a project file",
        "tags": [
          "Attachments"
        ],
        "x-required-scopes": [
          "attachments:read"
        ]
      }
    },
    "/workspace/{handle}/resourcing/allocations": {
      "get": {
        "operationId": "getWorkspaceAllocations",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "First day of the window (YYYY-MM-DD or RFC 3339). Required unless start is given.",
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Last day of the window (YYYY-MM-DD or RFC 3339). Required unless end is given.",
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Alias for start_date.",
            "in": "query",
            "name": "start",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Alias for end_date.",
            "in": "query",
            "name": "end",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Members per page. Omit to return every member.",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Case-insensitive match against member name or rate card name.",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Include members with no allocations in the window.",
            "in": "query",
            "name": "include_unallocated",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Comma-separated user IDs to include.",
            "in": "query",
            "name": "user_ids",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comma-separated project IDs to include.",
            "in": "query",
            "name": "project_ids",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comma-separated rate card IDs to include. Ignored for roles that cannot see rate cards.",
            "in": "query",
            "name": "rate_card_ids",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comma-separated user IDs to exclude.",
            "in": "query",
            "name": "exclude_user_ids",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comma-separated project IDs to exclude.",
            "in": "query",
            "name": "exclude_project_ids",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comma-separated rate card IDs to exclude. Ignored for roles that cannot see rate cards.",
            "in": "query",
            "name": "exclude_rate_card_ids",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourcingAllocationsResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Get the workspace's resource allocations by member",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:read"
        ]
      },
      "post": {
        "operationId": "queryWorkspaceAllocations",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourcingAllocationsQuery"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourcingAllocationsResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Query the workspace's resource allocations by member",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:read"
        ]
      }
    },
    "/workspace/{handle}/timelogs": {
      "post": {
        "operationId": "createTimelog",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTimelogRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelogResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timelogs:write"
            ]
          }
        ],
        "summary": "Log time for a member",
        "tags": [
          "Time logs"
        ],
        "x-required-scopes": [
          "timelogs:write"
        ]
      }
    },
    "/workspace/{handle}/timelogs/issue/{id}": {
      "get": {
        "operationId": "listIssueTimelogs",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Task UUID.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page to return, starting at 1. Defaults to 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Entries per page. Defaults to 10.",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelogListResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timelogs:read"
            ]
          },
          {
            "oauth2": [
              "timelogs:write"
            ]
          }
        ],
        "summary": "List a task's time entries",
        "tags": [
          "Time logs"
        ],
        "x-required-scopes": [
          "timelogs:read"
        ]
      }
    },
    "/workspace/{handle}/timelogs/{id}": {
      "delete": {
        "operationId": "deleteTimelog",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time entry UUID.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timelogs:write"
            ]
          }
        ],
        "summary": "Delete a time entry",
        "tags": [
          "Time logs"
        ],
        "x-required-scopes": [
          "timelogs:write"
        ]
      },
      "get": {
        "operationId": "listUserTimelogs",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UUID of the workspace member whose entries to return — not a time entry ID. Entries on projects outside the installation's scope are left out.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/TimelogResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timelogs:read"
            ]
          },
          {
            "oauth2": [
              "timelogs:write"
            ]
          }
        ],
        "summary": "List a member's time entries",
        "tags": [
          "Time logs"
        ],
        "x-required-scopes": [
          "timelogs:read"
        ]
      },
      "patch": {
        "operationId": "updateTimelog",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time entry UUID.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTimelogRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelogResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timelogs:write"
            ]
          }
        ],
        "summary": "Update a time entry",
        "tags": [
          "Time logs"
        ],
        "x-required-scopes": [
          "timelogs:write"
        ]
      }
    },
    "/workspace/{handle}/workflows": {
      "post": {
        "operationId": "createWorkflow",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "workflows:write"
            ]
          }
        ],
        "summary": "Create a workflow",
        "tags": [
          "Workflows"
        ],
        "x-required-scopes": [
          "workflows:write"
        ]
      }
    },
    "/workspace/{handle}/workflows/all-by-workspace": {
      "post": {
        "operationId": "listWorkflows",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaginationAndFilters"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Unfiltered item count, where the endpoint reports one. Omitted when zero.",
                      "type": "integer"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/WorkflowSummary"
                      },
                      "nullable": true,
                      "type": "array"
                    },
                    "limit": {
                      "description": "Page size used for this response. Omitted when zero.",
                      "type": "integer"
                    },
                    "page": {
                      "description": "Current page, starting at 1. Omitted when zero.",
                      "type": "integer"
                    },
                    "total": {
                      "description": "Number of items matching the filters. Omitted when zero.",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "workflows:write"
            ]
          }
        ],
        "summary": "List the workspace's workflows",
        "tags": [
          "Workflows"
        ],
        "x-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/workspace/{handle}/workflows/default": {
      "get": {
        "operationId": "getDefaultWorkflow",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "workflows:write"
            ]
          }
        ],
        "summary": "Get the workspace's default workflow",
        "tags": [
          "Workflows"
        ],
        "x-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/workspace/{handle}/workflows/statuses/order": {
      "put": {
        "operationId": "updateWorkflowStatusOrder",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/WorkflowStatusOrder"
                },
                "nullable": true,
                "type": "array"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "workflows:write"
            ]
          }
        ],
        "summary": "Reorder a workflow's statuses",
        "tags": [
          "Workflows"
        ],
        "x-required-scopes": [
          "workflows:write"
        ]
      }
    },
    "/workspace/{handle}/workflows/{id}": {
      "delete": {
        "operationId": "deleteWorkflow",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Confirmation message.",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "workflows:write"
            ]
          }
        ],
        "summary": "Delete a workflow",
        "tags": [
          "Workflows"
        ],
        "x-required-scopes": [
          "workflows:write"
        ]
      },
      "get": {
        "operationId": "getWorkflow",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "workflows:write"
            ]
          }
        ],
        "summary": "Get a workflow with its statuses",
        "tags": [
          "Workflows"
        ],
        "x-required-scopes": [
          "workflows:read"
        ]
      },
      "put": {
        "operationId": "updateWorkflow",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "workflows:write"
            ]
          }
        ],
        "summary": "Update a workflow and its statuses",
        "tags": [
          "Workflows"
        ],
        "x-required-scopes": [
          "workflows:write"
        ]
      }
    },
    "/workspace/{handle}/workflows/{id}/mark-as-default": {
      "post": {
        "operationId": "markWorkflowAsDefault",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Confirmation message.",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "workflows:write"
            ]
          }
        ],
        "summary": "Make a workflow the workspace default",
        "tags": [
          "Workflows"
        ],
        "x-required-scopes": [
          "workflows:write"
        ]
      }
    },
    "/workspace/{handle}/workflows/{id}/statuses": {
      "get": {
        "operationId": "listWorkflowStatuses",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkflowStatusReference"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "workflows:write"
            ]
          }
        ],
        "summary": "List a workflow's statuses",
        "tags": [
          "Workflows"
        ],
        "x-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/workspace/{handle}/{key}/issues": {
      "get": {
        "operationId": "listProjectIssues",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search text matched against issue codes and titles.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page to return, starting at 1. Defaults to 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Page size, 1 to 500. Defaults to 10; a value outside that range is treated as 500.",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Field to sort by: `created_at`, `updated_at`, `title` or `timeline_order`. Defaults to `created_at`.",
            "in": "query",
            "name": "sort_by",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Sort direction, `ASC` or `DESC`. Defaults to `DESC`.",
            "in": "query",
            "name": "sort_dir",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "View the list is built for: `default` or `sprint`. Defaults to `default`.",
            "in": "query",
            "name": "type",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Issue type the `sprint` view groups by: `task` or `deliverable`. Defaults to `task`.",
            "in": "query",
            "name": "issue_type",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only return issues in this sprint.",
            "in": "query",
            "name": "sprint_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only return children of this issue.",
            "in": "query",
            "name": "parent_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Issue IDs to keep regardless of the other filters. Repeat the parameter, or pass one comma-separated value.",
            "explode": true,
            "in": "query",
            "name": "include_ids",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Issue IDs to leave out. Repeat the parameter, or pass one comma-separated value.",
            "explode": true,
            "in": "query",
            "name": "exclude_ids",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Leave archived issues out. Defaults to true.",
            "in": "query",
            "name": "exclude_archived",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Return only archived issues. Overrides `exclude_archived`.",
            "in": "query",
            "name": "only_archived",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "User IDs to filter by. Repeat the parameter, or pass one comma-separated value.",
            "explode": true,
            "in": "query",
            "name": "assignees",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Priorities to filter by. Repeat the parameter, or pass one comma-separated value.",
            "explode": true,
            "in": "query",
            "name": "priorities",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Issue types to filter by. Repeat the parameter, or pass one comma-separated value.",
            "explode": true,
            "in": "query",
            "name": "types",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Workflow status IDs to filter by. Repeat the parameter, or pass one comma-separated value.",
            "explode": true,
            "in": "query",
            "name": "statuses",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Label IDs to filter by. Repeat the parameter, or pass one comma-separated value.",
            "explode": true,
            "in": "query",
            "name": "labels",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Unfiltered item count, where the endpoint reports one. Omitted when zero.",
                      "type": "integer"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/IssueResponse"
                      },
                      "nullable": true,
                      "type": "array"
                    },
                    "limit": {
                      "description": "Page size used for this response. Omitted when zero.",
                      "type": "integer"
                    },
                    "page": {
                      "description": "Current page, starting at 1. Omitted when zero.",
                      "type": "integer"
                    },
                    "total": {
                      "description": "Number of items matching the filters. Omitted when zero.",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List a project's issues",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:read"
        ]
      },
      "post": {
        "operationId": "createIssue",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateIssueRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Create an issue",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/issues/archive/{id}": {
      "put": {
        "operationId": "archiveIssue",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Confirmation message.",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Archive an issue",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/issues/dependencies": {
      "delete": {
        "operationId": "deleteDependency",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteIssueDependencyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Delete the dependency between two issues",
        "tags": [
          "Issue dependencies"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      },
      "get": {
        "operationId": "listProjectDependencies",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IssueDependencyResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List a project's issue dependencies",
        "tags": [
          "Issue dependencies"
        ],
        "x-required-scopes": [
          "issues:read"
        ]
      },
      "post": {
        "operationId": "createDependency",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateIssueDependencyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueDependencyResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Create an issue dependency",
        "tags": [
          "Issue dependencies"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/issues/unarchive/{id}": {
      "put": {
        "operationId": "unarchiveIssue",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Confirmation message.",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Unarchive an issue and its archived children",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/issues/{id}": {
      "delete": {
        "operationId": "deleteIssue",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Confirmation message.",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Delete an issue",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      },
      "get": {
        "operationId": "getIssue",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Issue code, e.g. `T001-42`. Other issue routes take the issue's UUID here.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Get an issue by its code",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:read"
        ]
      },
      "put": {
        "operationId": "updateIssue",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIssueRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Update an issue",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/issues/{id}/labels": {
      "put": {
        "operationId": "setIssueLabels",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIssueLabelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Replace an issue's labels",
        "tags": [
          "Issues"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/milestones": {
      "get": {
        "operationId": "listMilestones",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ProjectMilestoneResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "timeline:read"
            ]
          },
          {
            "oauth2": [
              "timeline:write"
            ]
          }
        ],
        "summary": "List a project's milestones",
        "tags": [
          "Milestones"
        ],
        "x-required-scopes": [
          "timeline:read"
        ]
      },
      "post": {
        "operationId": "createMilestone",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectMilestoneRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectMilestoneResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timeline:write"
            ]
          }
        ],
        "summary": "Create a milestone",
        "tags": [
          "Milestones"
        ],
        "x-required-scopes": [
          "timeline:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/milestones/{milestoneId}": {
      "delete": {
        "operationId": "deleteMilestone",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "milestoneId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Confirmation message.",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timeline:write"
            ]
          }
        ],
        "summary": "Delete a milestone",
        "tags": [
          "Milestones"
        ],
        "x-required-scopes": [
          "timeline:write"
        ]
      },
      "put": {
        "operationId": "updateMilestone",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "milestoneId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectMilestoneRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectMilestoneResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timeline:write"
            ]
          }
        ],
        "summary": "Update a milestone",
        "tags": [
          "Milestones"
        ],
        "x-required-scopes": [
          "timeline:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/resource-segments": {
      "get": {
        "operationId": "listResourceSegments",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "First day of the window (YYYY-MM-DD or RFC 3339).",
            "in": "query",
            "name": "start",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Last day of the window (YYYY-MM-DD or RFC 3339).",
            "in": "query",
            "name": "end",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ResourceSegmentResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List a project's resource segments in a date window",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:read"
        ]
      },
      "post": {
        "operationId": "createResourceSegment",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateResourceSegmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceSegmentResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Create a resource segment for an issue",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/resource-segments/add-allocation": {
      "post": {
        "operationId": "addSegmentAllocation",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSegmentAllocationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ResourceSegmentResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Add a member's hours to an issue for a week",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/resource-segments/{segmentId}": {
      "delete": {
        "operationId": "deleteResourceSegment",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "segmentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceSegmentDeleted"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Delete a resource segment",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      },
      "patch": {
        "operationId": "updateResourceSegment",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "segmentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateResourceSegmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceSegmentResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Update a resource segment's dates",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      },
      "put": {
        "operationId": "replaceResourceSegment",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "segmentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateResourceSegmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceSegmentResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Update a resource segment's dates",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/resource-segments/{segmentId}/allocations/reassign": {
      "post": {
        "operationId": "reassignSegmentAllocation",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "segmentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReassignSegmentAllocationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceSegmentAllocationResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Move an allocation from one member to another",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/resource-segments/{segmentId}/allocations/{userId}": {
      "delete": {
        "operationId": "deleteSegmentAllocation",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "segmentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceSegmentDeleted"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Remove a member's allocation from a resource segment",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      },
      "put": {
        "operationId": "upsertSegmentAllocation",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "segmentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertSegmentAllocationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceSegmentAllocationResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Set a member's hours on a resource segment",
        "tags": [
          "Resourcing"
        ],
        "x-required-scopes": [
          "issues:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/roadmap-items/all-by-project": {
      "post": {
        "operationId": "listRoadmapItems",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaginationAndFilters"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Unfiltered item count, where the endpoint reports one. Omitted when zero.",
                      "type": "integer"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/RoadmapItemResponse"
                      },
                      "nullable": true,
                      "type": "array"
                    },
                    "limit": {
                      "description": "Page size used for this response. Omitted when zero.",
                      "type": "integer"
                    },
                    "page": {
                      "description": "Current page, starting at 1. Omitted when zero.",
                      "type": "integer"
                    },
                    "total": {
                      "description": "Number of items matching the filters. Omitted when zero.",
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List a project's roadmap items",
        "tags": [
          "Roadmap"
        ],
        "x-required-scopes": [
          "roadmap_items:read"
        ]
      }
    },
    "/workspace/{handle}/{key}/roadmap-items/{id}": {
      "get": {
        "operationId": "getRoadmapItem",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoadmapItemResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Get a roadmap item",
        "tags": [
          "Roadmap"
        ],
        "x-required-scopes": [
          "roadmap_items:read"
        ]
      }
    },
    "/workspace/{handle}/{key}/sections": {
      "get": {
        "operationId": "listProjectSections",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ProjectSectionResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List a project's section toggles",
        "tags": [
          "Projects"
        ],
        "x-required-scopes": [
          "projects:read"
        ]
      }
    },
    "/workspace/{handle}/{key}/sprints": {
      "get": {
        "operationId": "listSprints",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SprintResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "List a project's open sprints",
        "tags": [
          "Sprints"
        ],
        "x-required-scopes": [
          "sprints:read"
        ]
      },
      "post": {
        "operationId": "createSprint",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSprintRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SprintResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Create a sprint",
        "tags": [
          "Sprints"
        ],
        "x-required-scopes": [
          "sprints:write"
        ]
      },
      "put": {
        "operationId": "updateSprint",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSprintRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SprintResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Update a sprint",
        "tags": [
          "Sprints"
        ],
        "x-required-scopes": [
          "sprints:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/sprints/bulk-assign": {
      "post": {
        "operationId": "bulkAssignSprintIssues",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAssignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SprintIssuesAssigned"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Assign several issues to a user",
        "tags": [
          "Sprints"
        ],
        "x-required-scopes": [
          "sprints:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/sprints/bulk-move": {
      "post": {
        "operationId": "bulkMoveSprintIssues",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkMoveIssuesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SprintIssuesMoved"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Move issues into a sprint",
        "tags": [
          "Sprints"
        ],
        "x-required-scopes": [
          "sprints:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/sprints/bulk-status": {
      "post": {
        "operationId": "bulkUpdateSprintIssueStatus",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkStatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SprintIssuesStatusUpdated"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Set the status of several issues",
        "tags": [
          "Sprints"
        ],
        "x-required-scopes": [
          "sprints:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/sprints/search": {
      "get": {
        "operationId": "searchSprints",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Case-insensitive text to match against sprint names.",
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Maximum number of sprints to return, from 1 to 50. Defaults to 10.",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SprintResponse"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Search a project's sprints",
        "tags": [
          "Sprints"
        ],
        "x-required-scopes": [
          "sprints:read"
        ]
      }
    },
    "/workspace/{handle}/{key}/sprints/{sprintID}": {
      "delete": {
        "operationId": "deleteSprint",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "sprintID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Confirmation message.",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:write"
            ]
          }
        ],
        "summary": "Delete an empty sprint",
        "tags": [
          "Sprints"
        ],
        "x-required-scopes": [
          "sprints:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/timeline-share": {
      "get": {
        "operationId": "getTimelineShare",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineShareResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          }
        ],
        "summary": "Get the project's public timeline link",
        "tags": [
          "Timeline"
        ],
        "x-required-scopes": [
          "timeline_shares:read"
        ]
      }
    },
    "/workspace/{handle}/{key}/timeline-snapshots": {
      "get": {
        "operationId": "listTimelineSnapshots",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/TimelineSnapshotListItem"
                  },
                  "nullable": true,
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "timeline:read"
            ]
          },
          {
            "oauth2": [
              "timeline:write"
            ]
          }
        ],
        "summary": "List a project's timeline snapshots",
        "tags": [
          "Timeline"
        ],
        "x-required-scopes": [
          "timeline_snapshots:read",
          "timeline:read"
        ]
      },
      "post": {
        "operationId": "createTimelineSnapshot",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTimelineSnapshotRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineSnapshotResponse"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timeline:write"
            ]
          }
        ],
        "summary": "Snapshot the project's current timeline",
        "tags": [
          "Timeline"
        ],
        "x-required-scopes": [
          "timeline_snapshots:write",
          "timeline:write"
        ]
      }
    },
    "/workspace/{handle}/{key}/timeline-snapshots/{snapshotId}": {
      "delete": {
        "operationId": "deleteTimelineSnapshot",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "snapshotId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timeline:write"
            ]
          }
        ],
        "summary": "Delete a timeline snapshot",
        "tags": [
          "Timeline"
        ],
        "x-required-scopes": [
          "timeline_snapshots:write",
          "timeline:write"
        ]
      },
      "get": {
        "operationId": "getTimelineSnapshot",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "snapshotId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineSnapshotResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "oauth2": [
              "timeline:read"
            ]
          },
          {
            "oauth2": [
              "timeline:write"
            ]
          }
        ],
        "summary": "Get a timeline snapshot with its data",
        "tags": [
          "Timeline"
        ],
        "x-required-scopes": [
          "timeline_snapshots:read",
          "timeline:read"
        ]
      }
    },
    "/workspace/{handle}/{key}/timeline-snapshots/{snapshotId}/restore": {
      "post": {
        "operationId": "restoreTimelineSnapshot",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project key, e.g. `T-001`.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "snapshotId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreTimelineSnapshotResponse"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "timeline:write"
            ]
          }
        ],
        "summary": "Restore the project's timeline from a snapshot",
        "tags": [
          "Timeline"
        ],
        "x-required-scopes": [
          "timeline_snapshots:write",
          "timeline:write"
        ]
      }
    },
    "/workspaces/{handle}/membership/all": {
      "post": {
        "operationId": "listMembers",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaginationAndFilters"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/MemberListPage"
                    },
                    {
                      "$ref": "#/components/schemas/MemberIDsPage"
                    }
                  ],
                  "description": "A page of members, or every matching user ID when the request sets `ids_only`."
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "workspace:read"
            ]
          }
        ],
        "summary": "List the workspace's members",
        "tags": [
          "Members"
        ],
        "x-required-scopes": [
          "members:read"
        ]
      }
    },
    "/workspaces/{handle}/membership/me": {
      "get": {
        "operationId": "getMyMembership",
        "parameters": [
          {
            "description": "Workspace handle, as it appears in the Trellis URL.",
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyMembership"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Error. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message."
          }
        },
        "security": [
          {
            "oauth2": [
              "issues:read"
            ]
          },
          {
            "oauth2": [
              "issues:write"
            ]
          },
          {
            "oauth2": [
              "workspace:read"
            ]
          }
        ],
        "summary": "Get the caller's workspace membership",
        "tags": [
          "Members"
        ],
        "x-required-scopes": [
          "members:read"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://trellisapp.co.uk/api/v1"
    }
  ],
  "tags": [
    {
      "name": "Application"
    },
    {
      "name": "Attachments"
    },
    {
      "name": "Comments"
    },
    {
      "name": "Inline comments"
    },
    {
      "name": "Issue dependencies"
    },
    {
      "name": "Issues"
    },
    {
      "name": "Labels"
    },
    {
      "name": "Members"
    },
    {
      "name": "Milestones"
    },
    {
      "name": "Projects"
    },
    {
      "name": "Resourcing"
    },
    {
      "name": "Roadmap"
    },
    {
      "name": "Sprints"
    },
    {
      "name": "Time logs"
    },
    {
      "name": "Timeline"
    },
    {
      "name": "Workflows"
    }
  ]
}
