{
  "components" : {
    "schemas" : {
      "ApiComment" : {
        "properties" : {
          "id" : {
            "description" : "The comment's id.",
            "format" : "uuid",
            "type" : "string"
          },
          "authorId" : {
            "description" : "The person who wrote it.",
            "format" : "uuid",
            "type" : "string"
          },
          "authorName" : {
            "description" : "Their name.",
            "type" : "string"
          },
          "body" : {
            "description" : "Plain text, or HTML when bodyFormat says so.",
            "type" : "string"
          },
          "bodyFormat" : {
            "description" : "HTML for rich text, null for plain text.",
            "type" : "string"
          },
          "parentCommentId" : {
            "description" : "The comment this one answers, if any.",
            "format" : "uuid",
            "type" : "string"
          },
          "resolved" : {
            "description" : "Whether the comment has been marked resolved.",
            "type" : "boolean"
          },
          "createdAt" : {
            "description" : "When it was written (UTC).",
            "format" : "date-time",
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "ApiCommentRequest" : {
        "properties" : {
          "body" : {
            "maxLength" : 10000,
            "minLength" : 0,
            "type" : "string"
          },
          "parentCommentId" : {
            "description" : "The comment this one answers, if any.",
            "format" : "uuid",
            "type" : "string"
          }
        },
        "required" : [ "body" ],
        "type" : "object"
      },
      "ApiCompany" : {
        "properties" : {
          "id" : {
            "description" : "The company's id.",
            "format" : "uuid",
            "type" : "string"
          },
          "externalId" : {
            "description" : "Your own id for the company in your systems, if you gave one. Unique in the project.",
            "type" : "string"
          },
          "name" : {
            "description" : "The company's name.",
            "type" : "string"
          },
          "domain" : {
            "description" : "The email domain used to match customers to the company, in lower case, or null. Unique in the project.",
            "type" : "string"
          },
          "customerCount" : {
            "description" : "How many customers belong to the company.",
            "format" : "int32",
            "type" : "integer"
          },
          "customFields" : {
            "additionalProperties" : {
              "description" : "Custom field values by field name. Only fields that have a value are listed.",
              "type" : "string"
            },
            "description" : "Custom field values by field name. Only fields that have a value are listed.",
            "type" : "object"
          },
          "emails" : {
            "description" : "The addresses the company is emailed at, in lower case. Empty only for a company created before addresses were kept.",
            "items" : {
              "description" : "The addresses the company is emailed at, in lower case. Empty only for a company created before addresses were kept.",
              "type" : "string"
            },
            "type" : "array"
          },
          "emailOptOut" : {
            "description" : "True when the company asked not to be emailed.",
            "type" : "boolean"
          },
          "createdAt" : {
            "description" : "When the company was created (UTC).",
            "format" : "date-time",
            "type" : "string"
          },
          "updatedAt" : {
            "description" : "When it last changed (UTC).",
            "format" : "date-time",
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "ApiCompanyField" : {
        "properties" : {
          "id" : {
            "description" : "The field's id.",
            "format" : "uuid",
            "type" : "string"
          },
          "name" : {
            "description" : "The field's name: the key of its value in a company's customFields.",
            "type" : "string"
          },
          "type" : {
            "description" : "TEXT, NUMBER, DATE (yyyy-MM-dd), SELECT, MULTI_SELECT (options separated by commas), TAGS (any words separated by commas, up to 50 tags of 40 characters), CHECKBOX (true or false), URL, EMAIL, PHONE, CURRENCY, RATING (1 to 5) or PROGRESS (0 to 100).",
            "enum" : [ "TEXT", "NUMBER", "DATE", "SELECT", "CHECKBOX", "URL", "MULTI_SELECT", "USER", "RATING", "EMAIL", "PHONE", "CURRENCY", "PROGRESS", "TAGS" ],
            "type" : "string"
          },
          "options" : {
            "description" : "The allowed values of a SELECT or MULTI_SELECT field.",
            "items" : {
              "description" : "The allowed values of a SELECT or MULTI_SELECT field.",
              "type" : "string"
            },
            "type" : "array"
          },
          "currency" : {
            "description" : "The currency symbol of a CURRENCY field.",
            "type" : "string"
          },
          "position" : {
            "description" : "The field's place in the list, from 0.",
            "format" : "int32",
            "type" : "integer"
          }
        },
        "type" : "object"
      },
      "ApiCompanyRequest" : {
        "properties" : {
          "name" : {
            "description" : "The company's name. Required when creating; when updating, it cannot be empty.",
            "type" : "string"
          },
          "domain" : {
            "description" : "The email domain used to match customers to the company, for example acme.com. Unique in the project; an empty value clears it.",
            "type" : "string"
          },
          "externalId" : {
            "description" : "Your own id for the company in your systems, so the same call can be repeated safely. Unique in the project; an empty value clears it. With PUT /companies/external/{externalId} it is taken from the path.",
            "type" : "string"
          },
          "customFields" : {
            "additionalProperties" : {
              "description" : "Custom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /company-fields.",
              "type" : "string"
            },
            "description" : "Custom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /company-fields.",
            "type" : "object"
          },
          "emails" : {
            "description" : "The addresses the company is emailed at. At least one is required when creating. When updating, the list you send replaces the list kept; leave it out to keep it.",
            "items" : {
              "description" : "The addresses the company is emailed at. At least one is required when creating. When updating, the list you send replaces the list kept; leave it out to keep it.",
              "type" : "string"
            },
            "type" : "array"
          },
          "emailOptOut" : {
            "description" : "True to stop all emails to this company, false to allow them again. Leave out to keep it.",
            "type" : "boolean"
          }
        },
        "type" : "object"
      },
      "ApiCursorPageApiCompany" : {
        "description" : "One page of a list, reached by cursor.",
        "properties" : {
          "items" : {
            "description" : "The items on this page.",
            "items" : {
              "$ref" : "#/components/schemas/ApiCompany"
            },
            "type" : "array"
          },
          "limit" : {
            "description" : "How many items a page holds at most: 1 to 100, 50 by default.",
            "format" : "int32",
            "type" : "integer"
          },
          "total" : {
            "description" : "How many items match, over every page.",
            "format" : "int64",
            "type" : "integer"
          },
          "hasMore" : {
            "description" : "Whether another page follows this one.",
            "type" : "boolean"
          },
          "nextCursor" : {
            "description" : "Pass this as `cursor` to get the next page. Absent on the last page.",
            "nullable" : true,
            "type" : "string"
          },
          "prevCursor" : {
            "description" : "Pass this as `cursor` to get the page before this one. Absent on the first page.",
            "nullable" : true,
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "ApiCursorPageApiCustomer" : {
        "description" : "One page of a list, reached by cursor.",
        "properties" : {
          "items" : {
            "description" : "The items on this page.",
            "items" : {
              "$ref" : "#/components/schemas/ApiCustomer"
            },
            "type" : "array"
          },
          "limit" : {
            "description" : "How many items a page holds at most: 1 to 100, 50 by default.",
            "format" : "int32",
            "type" : "integer"
          },
          "total" : {
            "description" : "How many items match, over every page.",
            "format" : "int64",
            "type" : "integer"
          },
          "hasMore" : {
            "description" : "Whether another page follows this one.",
            "type" : "boolean"
          },
          "nextCursor" : {
            "description" : "Pass this as `cursor` to get the next page. Absent on the last page.",
            "nullable" : true,
            "type" : "string"
          },
          "prevCursor" : {
            "description" : "Pass this as `cursor` to get the page before this one. Absent on the first page.",
            "nullable" : true,
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "ApiCustomer" : {
        "properties" : {
          "id" : {
            "description" : "The customer's id.",
            "format" : "uuid",
            "type" : "string"
          },
          "externalId" : {
            "description" : "Your own id for the person in your systems, if you gave one. Unique in the project.",
            "type" : "string"
          },
          "name" : {
            "description" : "The customer's name.",
            "type" : "string"
          },
          "email" : {
            "description" : "The customer's email address, in lower case. Unique in the project.",
            "type" : "string"
          },
          "phone" : {
            "description" : "The customer's phone number, or null.",
            "type" : "string"
          },
          "companyId" : {
            "description" : "The id of the company the customer belongs to, or null.",
            "format" : "uuid",
            "type" : "string"
          },
          "companyName" : {
            "description" : "The name of that company, or null.",
            "type" : "string"
          },
          "emailOptOut" : {
            "description" : "True when the customer asked not to be emailed, or your team switched emails off for them.",
            "type" : "boolean"
          },
          "customFields" : {
            "additionalProperties" : {
              "description" : "Custom field values by field name. Only fields that have a value are listed.",
              "type" : "string"
            },
            "description" : "Custom field values by field name. Only fields that have a value are listed.",
            "type" : "object"
          },
          "createdAt" : {
            "description" : "When the customer was created (UTC).",
            "format" : "date-time",
            "type" : "string"
          },
          "updatedAt" : {
            "description" : "When it last changed (UTC).",
            "format" : "date-time",
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "ApiCustomerField" : {
        "properties" : {
          "id" : {
            "description" : "The field's id.",
            "format" : "uuid",
            "type" : "string"
          },
          "name" : {
            "description" : "The field's name: the key of its value in a customer's customFields.",
            "type" : "string"
          },
          "type" : {
            "description" : "TEXT, NUMBER, DATE (yyyy-MM-dd), SELECT, MULTI_SELECT (options separated by commas), TAGS (any words separated by commas, up to 50 tags of 40 characters), CHECKBOX (true or false), URL, EMAIL, PHONE, CURRENCY, RATING (1 to 5) or PROGRESS (0 to 100).",
            "enum" : [ "TEXT", "NUMBER", "DATE", "SELECT", "CHECKBOX", "URL", "MULTI_SELECT", "USER", "RATING", "EMAIL", "PHONE", "CURRENCY", "PROGRESS", "TAGS" ],
            "type" : "string"
          },
          "options" : {
            "description" : "The allowed values of a SELECT or MULTI_SELECT field.",
            "items" : {
              "description" : "The allowed values of a SELECT or MULTI_SELECT field.",
              "type" : "string"
            },
            "type" : "array"
          },
          "currency" : {
            "description" : "The currency symbol of a CURRENCY field.",
            "type" : "string"
          },
          "position" : {
            "description" : "The field's place in the list, from 0.",
            "format" : "int32",
            "type" : "integer"
          }
        },
        "type" : "object"
      },
      "ApiCustomerRequest" : {
        "properties" : {
          "name" : {
            "description" : "The customer's name. Required when creating; when updating, it cannot be empty.",
            "type" : "string"
          },
          "email" : {
            "description" : "The customer's email address. Required when creating. Unique in the project.",
            "type" : "string"
          },
          "phone" : {
            "description" : "The customer's phone number. An empty value clears it.",
            "type" : "string"
          },
          "externalId" : {
            "description" : "Your own id for the person in your systems, so the same call can be repeated safely. Unique in the project; an empty value clears it. With PUT /customers/external/{externalId} it is the id in the path and may be left out.",
            "type" : "string"
          },
          "companyId" : {
            "description" : "The id of the company the customer belongs to. An empty value takes the customer out of its company. Leave out to keep it. Do not send it together with companyExternalId.",
            "type" : "string"
          },
          "companyExternalId" : {
            "description" : "The external id of the company the customer belongs to, as the Companies API knows it. An empty value takes the customer out of its company. Leave out to keep it. Do not send it together with companyId.",
            "type" : "string"
          },
          "emailOptOut" : {
            "description" : "True to stop all emails to this customer, false to allow them again. Leave out to keep it.",
            "type" : "boolean"
          },
          "customFields" : {
            "additionalProperties" : {
              "description" : "Custom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /customer-fields.",
              "type" : "string"
            },
            "description" : "Custom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /customer-fields.",
            "type" : "object"
          }
        },
        "type" : "object"
      },
      "ApiCustomerSession" : {
        "properties" : {
          "token" : {
            "description" : "The session token. It acts as this one person in the helpdesk portal until it expires. Treat it as a secret: pass it to their browser and nowhere else.",
            "type" : "string"
          },
          "expiresAt" : {
            "description" : "When the token stops working. Ask for a new session before then.",
            "format" : "date-time",
            "type" : "string"
          },
          "email" : {
            "description" : "The person's email address, as Decuga keeps it (lower case).",
            "type" : "string"
          },
          "name" : {
            "description" : "Their name.",
            "nullable" : true,
            "type" : "string"
          },
          "customerId" : {
            "description" : "Their customer id in the project.",
            "format" : "uuid",
            "nullable" : true,
            "type" : "string"
          },
          "companyId" : {
            "description" : "The company they belong to, if any.",
            "format" : "uuid",
            "nullable" : true,
            "type" : "string"
          },
          "companyName" : {
            "description" : "The company's name, if they belong to one.",
            "nullable" : true,
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "ApiCustomerSessionRequest" : {
        "properties" : {
          "email" : {
            "description" : "The person's email address. Required. They are found by it, or made a customer of the project if they are new.",
            "example" : "meera@globex.example",
            "type" : "string"
          },
          "name" : {
            "description" : "Their name, used only when the customer is new. A customer who already exists keeps the name your team gave them.",
            "example" : "Meera Rao",
            "type" : "string"
          },
          "companyExternalId" : {
            "description" : "Your own id of the company they belong to (the externalId of a company), so they see that company's requests. When it is given, it decides the company, even if the email's domain matches another. Leave out to keep whatever company they already have.",
            "example" : "globex-1042",
            "type" : "string"
          }
        },
        "required" : [ "email" ],
        "type" : "object"
      },
      "ApiMoveRequest" : {
        "properties" : {
          "stage" : {
            "description" : "The id of the stage to move to.",
            "type" : "string"
          },
          "sprintId" : {
            "format" : "uuid",
            "type" : "string"
          },
          "position" : {
            "description" : "Where in the stage, from 0.",
            "format" : "int32",
            "type" : "integer"
          },
          "removeFromSprint" : {
            "description" : "Take the task out of its sprint.",
            "type" : "boolean"
          }
        },
        "type" : "object"
      },
      "ApiPageApiTask" : {
        "description" : "One page of a list.",
        "properties" : {
          "items" : {
            "description" : "The items on this page.",
            "items" : {
              "$ref" : "#/components/schemas/ApiTask"
            },
            "type" : "array"
          },
          "page" : {
            "description" : "This page, from 0.",
            "format" : "int32",
            "type" : "integer"
          },
          "size" : {
            "description" : "How many items a page holds: 1 to 200, 50 by default.",
            "format" : "int32",
            "type" : "integer"
          },
          "total" : {
            "description" : "How many items there are in all, over every page.",
            "format" : "int32",
            "type" : "integer"
          },
          "hasMore" : {
            "description" : "Whether another page follows this one.",
            "type" : "boolean"
          }
        },
        "type" : "object"
      },
      "ApiSprint" : {
        "properties" : {
          "id" : {
            "description" : "The sprint's id: what a task's sprintId is set to.",
            "format" : "uuid",
            "type" : "string"
          },
          "name" : {
            "description" : "The sprint's name.",
            "type" : "string"
          },
          "goal" : {
            "description" : "The sprint's goal, or null.",
            "type" : "string"
          },
          "status" : {
            "description" : "Where the sprint is: PLANNING (made, not started), ACTIVE (running) or COMPLETED (finished).",
            "enum" : [ "PLANNING", "ACTIVE", "COMPLETED" ],
            "type" : "string"
          },
          "startDate" : {
            "description" : "The planned start (a date, no time), or null.",
            "format" : "date",
            "type" : "string"
          },
          "endDate" : {
            "description" : "The planned end (a date, no time), or null.",
            "format" : "date",
            "type" : "string"
          },
          "velocity" : {
            "description" : "The story points finished in the sprint, worked out when it was completed; null until then.",
            "format" : "int32",
            "type" : "integer"
          },
          "createdAt" : {
            "description" : "When the sprint was created (UTC).",
            "format" : "date-time",
            "type" : "string"
          },
          "completedAt" : {
            "description" : "When it was completed (UTC); null while it is not, and for sprints completed before this was recorded.",
            "format" : "date-time",
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "ApiTask" : {
        "properties" : {
          "id" : {
            "description" : "The task's id.",
            "format" : "uuid",
            "type" : "string"
          },
          "code" : {
            "description" : "The task's code, for example DT-12.",
            "type" : "string"
          },
          "title" : {
            "description" : "The title.",
            "type" : "string"
          },
          "description" : {
            "description" : "The description: plain text, or HTML, as it was written.",
            "type" : "string"
          },
          "stage" : {
            "description" : "The id of the board stage the task is in.",
            "type" : "string"
          },
          "status" : {
            "description" : "NEW, IN_PROGRESS or DONE.",
            "enum" : [ "NEW", "IN_PROGRESS", "DONE" ],
            "type" : "string"
          },
          "priority" : {
            "description" : "LOW, MEDIUM, HIGH or CRITICAL.",
            "enum" : [ "LOW", "MEDIUM", "HIGH", "CRITICAL" ],
            "type" : "string"
          },
          "assigneeId" : {
            "description" : "The person the task is assigned to.",
            "format" : "uuid",
            "type" : "string"
          },
          "assigneeName" : {
            "description" : "Their name.",
            "type" : "string"
          },
          "reporterId" : {
            "description" : "The person who created the task.",
            "format" : "uuid",
            "type" : "string"
          },
          "reporterName" : {
            "description" : "Their name.",
            "type" : "string"
          },
          "sprintId" : {
            "description" : "The sprint the task is in.",
            "format" : "uuid",
            "type" : "string"
          },
          "sectionId" : {
            "description" : "The section the task is in.",
            "format" : "uuid",
            "type" : "string"
          },
          "epicId" : {
            "description" : "The epic the task is in.",
            "format" : "uuid",
            "type" : "string"
          },
          "parentTaskId" : {
            "description" : "The parent task, for a sub-task.",
            "format" : "uuid",
            "type" : "string"
          },
          "parentTaskCode" : {
            "description" : "The parent task's code.",
            "type" : "string"
          },
          "storyPoints" : {
            "description" : "Story points.",
            "format" : "int32",
            "type" : "integer"
          },
          "effortEstimate" : {
            "description" : "The effort estimate, in hours.",
            "format" : "int32",
            "type" : "integer"
          },
          "dueDate" : {
            "description" : "The due date, yyyy-MM-dd, or null.",
            "type" : "string"
          },
          "startDate" : {
            "description" : "The start date, yyyy-MM-dd, or null.",
            "type" : "string"
          },
          "tags" : {
            "description" : "The task's tags.",
            "items" : {
              "description" : "The task's tags.",
              "type" : "string"
            },
            "type" : "array"
          },
          "customFields" : {
            "additionalProperties" : {
              "description" : "Custom field id to its value.",
              "type" : "string"
            },
            "description" : "Custom field id to its value.",
            "type" : "object"
          },
          "createdAt" : {
            "description" : "When the task was created (UTC).",
            "format" : "date-time",
            "type" : "string"
          },
          "updatedAt" : {
            "description" : "When it last changed (UTC).",
            "format" : "date-time",
            "type" : "string"
          },
          "completedAt" : {
            "description" : "When it was completed; null if it has not been, or was reopened since.",
            "format" : "date-time",
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "ApiTaskRequest" : {
        "properties" : {
          "title" : {
            "description" : "The task's title. Required when creating; when updating, it cannot be empty.",
            "type" : "string"
          },
          "description" : {
            "description" : "The description: plain text, or HTML.",
            "type" : "string"
          },
          "stage" : {
            "description" : "The id of a board stage. When creating, the project's first stage if left out.",
            "type" : "string"
          },
          "priority" : {
            "description" : "LOW, MEDIUM, HIGH or CRITICAL.",
            "enum" : [ "LOW", "MEDIUM", "HIGH", "CRITICAL" ],
            "type" : "string"
          },
          "assigneeId" : {
            "description" : "The person the task is assigned to. A task created without one is assigned to the person the API key belongs to.",
            "format" : "uuid",
            "type" : "string"
          },
          "clearAssignee" : {
            "description" : "Unassign the task.",
            "type" : "boolean"
          },
          "sprintId" : {
            "description" : "The sprint to put the task in.",
            "format" : "uuid",
            "type" : "string"
          },
          "clearSprint" : {
            "description" : "Take the task out of its sprint.",
            "type" : "boolean"
          },
          "sectionId" : {
            "description" : "The section to put the task in.",
            "format" : "uuid",
            "type" : "string"
          },
          "clearSection" : {
            "description" : "Take the task out of its section.",
            "type" : "boolean"
          },
          "epicId" : {
            "description" : "The epic to put the task in (Pro plan and above).",
            "format" : "uuid",
            "type" : "string"
          },
          "clearEpic" : {
            "description" : "Take the task out of its epic.",
            "type" : "boolean"
          },
          "parentTaskId" : {
            "description" : "Make the task a sub-task of this task.",
            "format" : "uuid",
            "type" : "string"
          },
          "clearParentTask" : {
            "description" : "Detach the task from its parent.",
            "type" : "boolean"
          },
          "storyPoints" : {
            "description" : "Story points.",
            "format" : "int32",
            "type" : "integer"
          },
          "clearStoryPoints" : {
            "description" : "Remove the story points.",
            "type" : "boolean"
          },
          "effortEstimate" : {
            "description" : "The effort estimate, in hours.",
            "format" : "int32",
            "type" : "integer"
          },
          "clearEffortEstimate" : {
            "description" : "Remove the effort estimate.",
            "type" : "boolean"
          },
          "dueDate" : {
            "description" : "The due date, yyyy-MM-dd.",
            "type" : "string"
          },
          "clearDueDate" : {
            "description" : "Remove the due date.",
            "type" : "boolean"
          },
          "startDate" : {
            "description" : "The start date, yyyy-MM-dd.",
            "type" : "string"
          },
          "clearStartDate" : {
            "description" : "Remove the start date.",
            "type" : "boolean"
          },
          "tags" : {
            "description" : "The whole list of tags: it replaces the task's tags.",
            "items" : {
              "description" : "The whole list of tags: it replaces the task's tags.",
              "type" : "string"
            },
            "type" : "array"
          }
        },
        "type" : "object"
      },
      "ChangeApproval" : {
        "properties" : {
          "approverId" : {
            "type" : "string"
          },
          "approverName" : {
            "type" : "string"
          },
          "role" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          },
          "decision" : {
            "type" : "string"
          },
          "comment" : {
            "type" : "string"
          },
          "decidedAt" : {
            "type" : "string"
          },
          "changeManagerApproval" : {
            "type" : "boolean"
          }
        },
        "type" : "object"
      },
      "ChangeRequestResponse" : {
        "properties" : {
          "id" : {
            "format" : "uuid",
            "type" : "string"
          },
          "projectId" : {
            "format" : "uuid",
            "type" : "string"
          },
          "accountId" : {
            "format" : "uuid",
            "type" : "string"
          },
          "createdByUserId" : {
            "format" : "uuid",
            "type" : "string"
          },
          "assigneeUserId" : {
            "format" : "uuid",
            "type" : "string"
          },
          "changeNumber" : {
            "type" : "string"
          },
          "title" : {
            "type" : "string"
          },
          "description" : {
            "type" : "string"
          },
          "changeType" : {
            "enum" : [ "STANDARD", "NORMAL", "EMERGENCY" ],
            "type" : "string"
          },
          "status" : {
            "enum" : [ "DRAFT", "PENDING_APPROVAL", "APPROVED", "REJECTED", "IN_PROGRESS", "COMPLETED", "FAILED", "ROLLED_BACK" ],
            "type" : "string"
          },
          "riskLevel" : {
            "enum" : [ "LOW", "MEDIUM", "HIGH", "CRITICAL" ],
            "type" : "string"
          },
          "affectedSystems" : {
            "items" : {
              "type" : "string"
            },
            "type" : "array"
          },
          "executionPlan" : {
            "type" : "string"
          },
          "rollbackPlan" : {
            "type" : "string"
          },
          "scheduledWindowStart" : {
            "type" : "string"
          },
          "scheduledWindowEnd" : {
            "type" : "string"
          },
          "blastRadius" : {
            "type" : "string"
          },
          "affectedServices" : {
            "items" : {
              "type" : "string"
            },
            "type" : "array"
          },
          "riskScore" : {
            "format" : "int32",
            "type" : "integer"
          },
          "approvals" : {
            "items" : {
              "$ref" : "#/components/schemas/ChangeApproval"
            },
            "type" : "array"
          },
          "requiredApprovals" : {
            "format" : "int32",
            "type" : "integer"
          },
          "requiredChangeManagerApprovals" : {
            "format" : "int32",
            "type" : "integer"
          },
          "linkedTaskCodes" : {
            "items" : {
              "type" : "string"
            },
            "type" : "array"
          },
          "linkedTicketNumbers" : {
            "items" : {
              "type" : "string"
            },
            "type" : "array"
          },
          "releaseId" : {
            "format" : "uuid",
            "type" : "string"
          },
          "releaseLabel" : {
            "type" : "string"
          },
          "reviewSuccess" : {
            "type" : "boolean"
          },
          "rollbackNeeded" : {
            "type" : "boolean"
          },
          "lessonsLearned" : {
            "type" : "string"
          },
          "reviewNotes" : {
            "type" : "string"
          },
          "reviewedAt" : {
            "format" : "date-time",
            "type" : "string"
          },
          "templateId" : {
            "format" : "uuid",
            "type" : "string"
          },
          "createdAt" : {
            "format" : "date-time",
            "type" : "string"
          },
          "updatedAt" : {
            "format" : "date-time",
            "type" : "string"
          },
          "implementedAt" : {
            "format" : "date-time",
            "type" : "string"
          },
          "startedAt" : {
            "format" : "date-time",
            "type" : "string"
          },
          "finishedAt" : {
            "format" : "date-time",
            "type" : "string"
          },
          "statusNote" : {
            "type" : "string"
          },
          "statusUrl" : {
            "type" : "string"
          },
          "rolledBackAt" : {
            "format" : "date-time",
            "type" : "string"
          },
          "rolledBackByUserId" : {
            "format" : "uuid",
            "type" : "string"
          },
          "rolledBackBy" : {
            "type" : "string"
          },
          "rollbackReason" : {
            "type" : "string"
          },
          "systemRestored" : {
            "type" : "boolean"
          },
          "rollbackOfChangeId" : {
            "format" : "uuid",
            "type" : "string"
          },
          "rollbackOfChangeNumber" : {
            "type" : "string"
          },
          "rollbackChangeId" : {
            "format" : "uuid",
            "type" : "string"
          },
          "rollbackChangeNumber" : {
            "type" : "string"
          }
        },
        "type" : "object"
      },
      "PatchChangeStatusDto" : {
        "properties" : {
          "status" : {
            "description" : "The status to set. Only the pipeline's statuses are accepted. Allowed moves: APPROVED to IN_PROGRESS; IN_PROGRESS to COMPLETED, FAILED or ROLLED_BACK; FAILED to ROLLED_BACK. Setting the status the change already has succeeds and changes nothing, so a pipeline can retry safely.",
            "enum" : [ "IN_PROGRESS", "COMPLETED", "FAILED", "ROLLED_BACK" ],
            "example" : "FAILED",
            "type" : "string"
          },
          "note" : {
            "description" : "Why, in plain words (for example the stage that failed and the reason). Shown in the change's history and as the status note in the change's Deploy and rollback box, whatever the status. For ROLLED_BACK it is the rollback reason instead.",
            "example" : "Health check failed on 2 of 5 pods",
            "maxLength" : 2000,
            "minLength" : 0,
            "type" : "string"
          },
          "url" : {
            "description" : "A link to the build, deployment or logs. Must start with http:// or https://. Shown as View build in the history and as the link in the Deploy and rollback box.",
            "example" : "https://ci.example.com/build/42",
            "maxLength" : 2000,
            "minLength" : 0,
            "type" : "string"
          },
          "systemRestored" : {
            "description" : "For ROLLED_BACK: whether the system is confirmed back to normal. A person must say; a pipeline may leave it out.",
            "type" : "boolean"
          }
        },
        "required" : [ "status" ],
        "type" : "object"
      }
    },
    "securitySchemes" : {
      "apiKey" : {
        "bearerFormat" : "dck_ project API key",
        "description" : "A project API key, created under Integrations, API Keys. Business plan and above.",
        "scheme" : "bearer",
        "type" : "http"
      }
    }
  },
  "info" : {
    "contact" : {
      "name" : "Decuga",
      "url" : "https://decuga.com/docs/api-reference"
    },
    "description" : "The routes meant for your own code: manage a project's tasks, sync its service desk companies, customers and their custom fields, sign your own customers in to the helpdesk portal, and let a deploy pipeline report a change request's status.\n\n**Authentication.** Create a project API key under Integrations, API Keys, and send it as `Authorization: Bearer dck_...`. A key belongs to one project and acts as the person who created it, so it can do what they can do.\n\n**Plan.** Business and above.\n\n**Rate limit.** The API allows 60 requests a minute for each key and 600 for a project. Over it is a 429 with `Retry-After`; every answer carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`.\n\n**Errors.** An error is a JSON object, `{\"error\": \"...\"}`.",
    "title" : "Decuga public API",
    "version" : "1.0"
  },
  "openapi" : "3.0.1",
  "paths" : {
    "/api/projects/{projectId}/changes/{changeId}/status" : {
      "patch" : {
        "description" : "For a deploy pipeline to report where a change request is: IN_PROGRESS when the deploy starts, COMPLETED when it succeeds, FAILED when it breaks, ROLLED_BACK after a rollback. The change is addressed by its id or its number (for example CHG-0001). Each call can carry a `note` and a `url`, which show in the change's history and in its Deploy and rollback box. Setting the status the change already has succeeds and changes nothing, so a pipeline can retry safely. Called with a project API key, the call is recorded as a pipeline action; the key needs the Business plan, like Change Management.",
        "operationId" : "setChangeStatus",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The change request's id or its number, for example CHG-0001.",
          "in" : "path",
          "name" : "changeId",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatchChangeStatusDto"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ChangeRequestResponse"
                }
              }
            },
            "description" : "OK"
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such change request in this project."
          },
          "409" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "That status cannot follow the change's current one."
          }
        },
        "summary" : "Set a change request's status",
        "tags" : [ "Change requests" ]
      }
    },
    "/api/v1/projects/{projectId}/companies" : {
      "get" : {
        "description" : "The project's companies, 50 a page unless `limit` says otherwise (at most 100). Pages are reached by cursor: leave `cursor` out for the first page, then pass the `nextCursor` of a page to get the next one. By name unless a filter is given. At most one filter at a time (`name`, `domain`, `externalId` or `updatedSince`); combining them is refused with 400. With `updatedSince` the oldest change comes first, so a sync can read on from where it stopped.",
        "operationId" : "listCompanies",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "Companies whose name starts with this text, ignoring case.",
          "in" : "query",
          "name" : "name",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "The company with this email domain.",
          "in" : "query",
          "name" : "domain",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "The company with this external id.",
          "in" : "query",
          "name" : "externalId",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Only companies changed at or after this time, for example 2026-11-21T10:00:00Z, or a date such as 2026-11-21. Oldest change first.",
          "in" : "query",
          "name" : "updatedSince",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Where the page starts: the `nextCursor` (or `prevCursor`) of the page before. Leave out for the first page.",
          "in" : "query",
          "name" : "cursor",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Companies a page: 1 to 100, 50 if left out.",
          "in" : "query",
          "name" : "limit",
          "required" : false,
          "schema" : {
            "format" : "int32",
            "type" : "integer"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCursorPageApiCompany"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "List companies",
        "tags" : [ "Companies" ]
      },
      "post" : {
        "description" : "Needs a name. A domain or external id that another company already has is refused with 409. Custom field values are sent by field name; see List company fields.",
        "operationId" : "createCompany",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiCompanyRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "201" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCompany"
                }
              }
            },
            "description" : "The company that was created.",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "409" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The domain or external id already belongs to another company."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Create a company",
        "tags" : [ "Companies" ]
      }
    },
    "/api/v1/projects/{projectId}/companies/external/{externalId}" : {
      "get" : {
        "description" : "One company, by the external id you gave it (the same id the create-or-update call uses). Answers 404 when no company has it.",
        "operationId" : "getCompanyByExternalId",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "Your own id for the company.",
          "in" : "path",
          "name" : "externalId",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCompany"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No company in this project has that external id."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Get a company by your own id",
        "tags" : [ "Companies" ]
      },
      "put" : {
        "description" : "Makes the company with this external id match the request: updates it if there is one, creates it if there is not (a name is then required). Sending the same call again changes nothing more, so it is safe to repeat or retry. Answers 201 when it created the company and 200 when it updated one.",
        "operationId" : "upsertCompanyByExternalId",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "Your own id for the company.",
          "in" : "path",
          "name" : "externalId",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiCompanyRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCompany"
                }
              }
            },
            "description" : "The company that was updated.",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "201" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCompany"
                }
              }
            },
            "description" : "The company that was created.",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "409" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The domain or external id already belongs to another company."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Create or update a company by your own id",
        "tags" : [ "Companies" ]
      }
    },
    "/api/v1/projects/{projectId}/companies/{company}" : {
      "get" : {
        "description" : "One company, by its id.",
        "operationId" : "getCompany",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The company's id.",
          "in" : "path",
          "name" : "company",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCompany"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such company in this project."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Get a company",
        "tags" : [ "Companies" ]
      },
      "patch" : {
        "description" : "A partial update: fields left out stay as they are, an empty domain, externalId or custom field value clears it.",
        "operationId" : "updateCompany",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The company's id.",
          "in" : "path",
          "name" : "company",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiCompanyRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCompany"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such company in this project."
          },
          "409" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The domain or external id already belongs to another company."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Update a company",
        "tags" : [ "Companies" ]
      }
    },
    "/api/v1/projects/{projectId}/company-fields" : {
      "get" : {
        "description" : "The custom fields a company can have a value for: the name is the key of the value in `customFields`, and the type says what form the value takes.",
        "operationId" : "listCompanyFields",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "items" : {
                    "$ref" : "#/components/schemas/ApiCompanyField"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "List company fields",
        "tags" : [ "Companies" ]
      }
    },
    "/api/v1/projects/{projectId}/customer-fields" : {
      "get" : {
        "description" : "The custom fields a customer can have a value for: the name is the key of the value in `customFields`, and the type says what form the value takes.",
        "operationId" : "listCustomerFields",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "items" : {
                    "$ref" : "#/components/schemas/ApiCustomerField"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "List customer fields",
        "tags" : [ "Customers" ]
      }
    },
    "/api/v1/projects/{projectId}/customer-sessions" : {
      "post" : {
        "description" : "Returns a helpdesk session for one person, with no emailed code. Send their email (required), their name (used only for a new customer) and, to put them in a company, your own id for it (`companyExternalId`, the `externalId` of a company). The person is found by their email, or made a customer of the project if they are new. The session is the same as the one a customer gets by entering a code: it lasts 30 days, and it lets them send requests, see their own and their company's, reply and attach files, and nothing more. Pass the whole response to the browser and give it to the SDK. **Call this from your server only**: the API key must never be in a browser, and the `token` in the response is a secret of that one person. The key's owner needs permission to manage the service desk.",
        "operationId" : "createCustomerSession",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiCustomerSessionRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "201" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCustomerSession"
                }
              }
            },
            "description" : "The session.",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No company has the external id that was sent as companyExternalId."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Sign a customer in to the helpdesk portal",
        "tags" : [ "Helpdesk sessions" ]
      }
    },
    "/api/v1/projects/{projectId}/customers" : {
      "get" : {
        "description" : "The project's customers, 50 a page unless `limit` says otherwise (at most 100). Pages are reached by cursor: leave `cursor` out for the first page, then pass the `nextCursor` of a page to get the next one. By name unless a filter is given. At most one filter at a time (`name`, `email`, `externalId` or `updatedSince`); combining them is refused with 400. With `updatedSince` the oldest change comes first, so a sync can read on from where it stopped.",
        "operationId" : "listCustomers",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "Customers whose name starts with this text, ignoring case.",
          "in" : "query",
          "name" : "name",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "The customer with this email address, ignoring case.",
          "in" : "query",
          "name" : "email",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "The customer with this external id.",
          "in" : "query",
          "name" : "externalId",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Only customers changed at or after this time, for example 2026-11-21T10:00:00Z, or a date such as 2026-11-21. Oldest change first.",
          "in" : "query",
          "name" : "updatedSince",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Where the page starts: the `nextCursor` (or `prevCursor`) of the page before. Leave out for the first page.",
          "in" : "query",
          "name" : "cursor",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Customers a page: 1 to 100, 50 if left out.",
          "in" : "query",
          "name" : "limit",
          "required" : false,
          "schema" : {
            "format" : "int32",
            "type" : "integer"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCursorPageApiCustomer"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "List customers",
        "tags" : [ "Customers" ]
      },
      "post" : {
        "description" : "Needs a name and an email address. An email address or external id that another customer already has is refused with 409. The company is given by `companyId` or by `companyExternalId`. Custom field values are sent by field name; see List customer fields.",
        "operationId" : "createCustomer",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiCustomerRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "201" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCustomer"
                }
              }
            },
            "description" : "The customer that was created.",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "409" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The email address or external id already belongs to another customer."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Create a customer",
        "tags" : [ "Customers" ]
      }
    },
    "/api/v1/projects/{projectId}/customers/external/{externalId}" : {
      "put" : {
        "description" : "Makes the customer with this external id match the request: updates it if there is one, creates it if there is not (a name and an email address are then required). Sending the same call again changes nothing more, so it is safe to repeat or retry. Answers 201 when it created the customer and 200 when it updated one. A customer is found by the external id first; when none has it, the customer with the request's email address is taken instead if it has no external id yet, and is given this one. A customer that already has a different external id is refused with 409.",
        "operationId" : "upsertCustomerByExternalId",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "Your own id for the customer.",
          "in" : "path",
          "name" : "externalId",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiCustomerRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCustomer"
                }
              }
            },
            "description" : "The customer that was updated.",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "201" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCustomer"
                }
              }
            },
            "description" : "The customer that was created.",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "409" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The email address or external id already belongs to another customer."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Create or update a customer by your own id",
        "tags" : [ "Customers" ]
      }
    },
    "/api/v1/projects/{projectId}/customers/{customer}" : {
      "get" : {
        "description" : "One customer, by its id.",
        "operationId" : "getCustomer",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The customer's id.",
          "in" : "path",
          "name" : "customer",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCustomer"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such customer in this project."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Get a customer",
        "tags" : [ "Customers" ]
      },
      "patch" : {
        "description" : "A partial update: fields left out stay as they are, an empty phone, externalId, company or custom field value clears it.",
        "operationId" : "updateCustomer",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The customer's id.",
          "in" : "path",
          "name" : "customer",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiCustomerRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiCustomer"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such customer in this project."
          },
          "409" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The email address or external id already belongs to another customer."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Update a customer",
        "tags" : [ "Customers" ]
      }
    },
    "/api/v1/projects/{projectId}/sprints" : {
      "get" : {
        "description" : "The project's sprints, newest first, with their status (PLANNING, ACTIVE or COMPLETED). Not paged: one call returns at most 100 (`limit` asks for fewer), the newest. Send `status` to get only those in one status, so `?status=ACTIVE` finds the sprint to put new tasks in. It is a list because a project made from the Marketing or HR template can have several active at once; an empty list means none is.",
        "operationId" : "listSprints",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "Only sprints in this status: PLANNING, ACTIVE or COMPLETED (any case). Leave out for all of them.",
          "in" : "query",
          "name" : "status",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Sprints to return: 1 to 100, the newest first; 100 if left out.",
          "in" : "query",
          "name" : "limit",
          "required" : false,
          "schema" : {
            "format" : "int32",
            "type" : "integer"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "items" : {
                    "$ref" : "#/components/schemas/ApiSprint"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "List sprints",
        "tags" : [ "Sprints" ]
      }
    },
    "/api/v1/projects/{projectId}/sprints/{sprint}" : {
      "get" : {
        "description" : "One sprint, by its id.",
        "operationId" : "getSprint",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The sprint's id.",
          "in" : "path",
          "name" : "sprint",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiSprint"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such sprint in this project."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Get a sprint",
        "tags" : [ "Sprints" ]
      }
    },
    "/api/v1/projects/{projectId}/tasks" : {
      "get" : {
        "description" : "The project's backlog, or one sprint's or section's tasks. Paged: 50 a page unless `size` says otherwise, at most 200.",
        "operationId" : "listTasks",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "Only this sprint's tasks.",
          "in" : "query",
          "name" : "sprintId",
          "required" : false,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "Only this section's tasks (inside the sprint if one is also given).",
          "in" : "query",
          "name" : "sectionId",
          "required" : false,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "Only tasks in this board stage (a stage id).",
          "in" : "query",
          "name" : "stage",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "The page, from 0.",
          "in" : "query",
          "name" : "page",
          "required" : false,
          "schema" : {
            "default" : 0,
            "format" : "int32",
            "type" : "integer"
          }
        }, {
          "description" : "Tasks a page: 1 to 200, 50 if left out.",
          "in" : "query",
          "name" : "size",
          "required" : false,
          "schema" : {
            "format" : "int32",
            "type" : "integer"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiPageApiTask"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "List tasks",
        "tags" : [ "Tasks" ]
      },
      "post" : {
        "description" : "Needs a title. A task created without an assigneeId is left unassigned, so someone can pick it up; send assigneeId to assign it. Its reporter is shown as the key's name followed by (API).",
        "operationId" : "createTask",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiTaskRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "201" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiTask"
                }
              }
            },
            "description" : "The task that was created.",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Create a task",
        "tags" : [ "Tasks" ]
      }
    },
    "/api/v1/projects/{projectId}/tasks/{task}" : {
      "delete" : {
        "description" : "Answers 204 with no body.",
        "operationId" : "deleteTask",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The task's id or its code, for example DT-12.",
          "in" : "path",
          "name" : "task",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "204" : {
            "description" : "The task was deleted.",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such task in this project."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Delete a task",
        "tags" : [ "Tasks" ]
      },
      "get" : {
        "description" : "One task, by its id or its code.",
        "operationId" : "getTask",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The task's id or its code, for example DT-12.",
          "in" : "path",
          "name" : "task",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiTask"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such task in this project."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Get a task",
        "tags" : [ "Tasks" ]
      },
      "patch" : {
        "description" : "A partial update: fields left out stay as they are, and each `clear...` flag empties its field. A task that is Done is read-only.",
        "operationId" : "updateTask",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The task's id or its code, for example DT-12.",
          "in" : "path",
          "name" : "task",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiTaskRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiTask"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such task in this project."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Update a task",
        "tags" : [ "Tasks" ]
      }
    },
    "/api/v1/projects/{projectId}/tasks/{task}/comments" : {
      "get" : {
        "description" : "Oldest first.",
        "operationId" : "listTaskComments",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The task's id or its code, for example DT-12.",
          "in" : "path",
          "name" : "task",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "items" : {
                    "$ref" : "#/components/schemas/ApiComment"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such task in this project."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "List a task's comments",
        "tags" : [ "Tasks" ]
      },
      "post" : {
        "description" : "A plain-text comment, by the person the API key belongs to.",
        "operationId" : "addTaskComment",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The task's id or its code, for example DT-12.",
          "in" : "path",
          "name" : "task",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiCommentRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "201" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiComment"
                }
              }
            },
            "description" : "The comment that was added.",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such task in this project."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Add a comment to a task",
        "tags" : [ "Tasks" ]
      }
    },
    "/api/v1/projects/{projectId}/tasks/{task}/move" : {
      "post" : {
        "description" : "Move a task to another board stage, and optionally into a sprint or to a place in the stage. Needs a stage, a sprintId or removeFromSprint.",
        "operationId" : "moveTask",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The task's id or its code, for example DT-12.",
          "in" : "path",
          "name" : "task",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ApiMoveRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiTask"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such task in this project."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "Move a task",
        "tags" : [ "Tasks" ]
      }
    },
    "/api/v1/projects/{projectId}/tasks/{task}/subtasks" : {
      "get" : {
        "operationId" : "listSubTasks",
        "parameters" : [ {
          "description" : "The project's id.",
          "in" : "path",
          "name" : "projectId",
          "required" : true,
          "schema" : {
            "format" : "uuid",
            "type" : "string"
          }
        }, {
          "description" : "The task's id or its code, for example DT-12.",
          "in" : "path",
          "name" : "task",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "*/*" : {
                "schema" : {
                  "items" : {
                    "$ref" : "#/components/schemas/ApiTask"
                  },
                  "type" : "array"
                }
              }
            },
            "description" : "OK",
            "headers" : {
              "X-RateLimit-Limit" : {
                "description" : "Requests a minute the API key may make.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Remaining" : {
                "description" : "Requests left in the current minute.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              },
              "X-RateLimit-Reset" : {
                "description" : "When the current minute ends, as a Unix time in seconds.",
                "schema" : {
                  "format" : "int32",
                  "type" : "integer"
                }
              }
            }
          },
          "400" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The request is not valid: a missing field, or a rule the app also refuses."
          },
          "401" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No API key, or one that is wrong or has been revoked."
          },
          "403" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this."
          },
          "404" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "No such task in this project."
          },
          "429" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "properties" : {
                    "error" : {
                      "type" : "string"
                    }
                  },
                  "type" : "object"
                }
              }
            },
            "description" : "Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds."
          }
        },
        "summary" : "List a task's sub-tasks",
        "tags" : [ "Tasks" ]
      }
    }
  },
  "security" : [ {
    "apiKey" : [ ]
  } ],
  "servers" : [ {
    "description" : "Decuga",
    "url" : "https://decuga.com"
  } ],
  "tags" : [ {
    "description" : "Sign your own customers in to the helpdesk portal without an emailed code. Your server asks for a session for a person it already knows, and gives it to their browser, where the SDK uses it. Call this from your server only: the API key must never reach a browser.",
    "name" : "Helpdesk sessions"
  }, {
    "description" : "The service desk's customers (the people who raise tickets) and their custom fields, for syncing them from your own systems. A customer can be found by your own id (externalId), so a sync can repeat a call without making a second customer.",
    "name" : "Customers"
  }, {
    "description" : "List a project's sprints with their status, and read one. A task is put in a sprint by sending that sprint's id as sprintId when it is created or moved.",
    "name" : "Sprints"
  }, {
    "description" : "The service desk's companies and their custom fields, for syncing them from your own systems. A company can be found by your own id (externalId), so a sync can repeat a call without making a second company.",
    "name" : "Companies"
  }, {
    "description" : "List, read, create, update, move and delete a project's tasks, and read and add comments on them. A task is addressed by its id or its code (for example DT-12).",
    "name" : "Tasks"
  } ]
}
