{
   "openapi": "3.0.0",
   "info": {
      "title": "Unified.to QMS API",
      "version": "1.0",
      "description": "One API to Rule Them All",
      "contact": {
         "email": "hello@unified.to",
         "url": "https://unified.to/contact"
      },
      "termsOfService": "https://unified.to/tos"
   },
   "externalDocs": {
      "description": "API Documentation",
      "url": "https://docs.unified.to"
   },
   "tags": [
      {
         "name": "unifiedapi",
         "description": "Unified.to API"
      },
      {
         "name": "qms"
      },
      {
         "name": "issue"
      },
      {
         "name": "action"
      },
      {
         "name": "inspection"
      },
      {
         "name": "audit"
      }
   ],
   "security": [
      {
         "jwt": []
      }
   ],
   "servers": [
      {
         "url": "https://api.unified.to",
         "description": "North American data region"
      },
      {
         "url": "https://api-eu.unified.to",
         "description": "European data region"
      },
      {
         "url": "https://api-au.unified.to",
         "description": "Australian data region"
      }
   ],
   "components": {
      "securitySchemes": {
         "jwt": {
            "type": "apiKey",
            "name": "authorization",
            "in": "header"
         }
      },
      "requestBodies": {
         "QmsIssue": {
            "required": true,
            "content": {
               "application/json": {
                  "schema": {
                     "$ref": "#/components/schemas/QmsIssue"
                  },
                  "examples": {
                     "qms_issue": {
                        "summary": "Sample QmsIssue",
                        "value": {
                           "id": "ef36093f-e939-4856-8dc7-2436c7b6b92c",
                           "created_at": "2020-06-10T05:10:42.904Z",
                           "updated_at": "2021-03-15T13:09:21.491Z",
                           "number": "CMP-5154",
                           "name": "Labeling error on individual",
                           "description": "Contabesco convoco uxor avaritia volaticus dens casso.",
                           "type": "COMPLAINT",
                           "original_type": "Customer Complaint",
                           "status": "IN_PROGRESS",
                           "lifecycle_state": "In Progress",
                           "severity": "MEDIUM",
                           "source": "CUSTOMER",
                           "affected_items": [
                              {
                                 "part_number": "PRT-051260",
                                 "revision": "B",
                                 "serial_number": "SN-419784",
                                 "quantity": 27
                              }
                           ],
                           "action_ids": [],
                           "change_ids": [],
                           "opened_at": "2024-07-21T15:45:14.965Z",
                           "due_at": "2024-07-31T21:07:04.994Z",
                           "file_ids": [],
                           "url": "https://edible-vicinity.com/",
                           "metadata": []
                        }
                     }
                  }
               }
            }
         },
         "QmsAction": {
            "required": true,
            "content": {
               "application/json": {
                  "schema": {
                     "$ref": "#/components/schemas/QmsAction"
                  },
                  "examples": {
                     "qms_action": {
                        "summary": "Sample QmsAction",
                        "value": {
                           "id": "0ca8bdd7-13ec-403f-b3c6-af49e7d9e003",
                           "created_at": "2022-03-07T03:01:29.933Z",
                           "updated_at": "2025-03-01T13:41:52.682Z",
                           "number": "CAPA-6268",
                           "name": "Add inspection step",
                           "description": "Apparatus aegre ascisco color fugit cunctatio attollo vestrum amaritudo.",
                           "type": "CORRECTIVE",
                           "original_type": "Corrective Action",
                           "status": "CANCELLED",
                           "lifecycle_state": "Cancelled",
                           "priority": "Medium",
                           "issue_ids": [],
                           "affected_items": [],
                           "root_cause": "Worn tooling",
                           "due_at": "2022-04-25T11:37:43.155Z",
                           "file_ids": [],
                           "url": "https://scientific-kiss.biz",
                           "metadata": []
                        }
                     }
                  }
               }
            }
         },
         "QmsInspection": {
            "required": true,
            "content": {
               "application/json": {
                  "schema": {
                     "$ref": "#/components/schemas/QmsInspection"
                  },
                  "examples": {
                     "qms_inspection": {
                        "summary": "Sample QmsInspection",
                        "value": {
                           "id": "983e79ec-8c50-4d29-9ff2-322dacaad000",
                           "created_at": "2020-04-18T21:23:54.000Z",
                           "updated_at": "2026-05-27T00:35:41.407Z",
                           "number": "INSP-96996",
                           "name": "Source inspection",
                           "type": "SOURCE",
                           "status": "CLOSED",
                           "lifecycle_state": "Complete",
                           "result": "PASS",
                           "part_number": "PRT-048483",
                           "revision": "A",
                           "quantity_inspected": 41,
                           "quantity_accepted": 41,
                           "quantity_rejected": 0,
                           "supplier_name": "Lehner Inc",
                           "characteristics": [
                              {
                                 "name": "Hole position",
                                 "nominal_value": 153,
                                 "lower_limit": 152.9,
                                 "upper_limit": 153.1,
                                 "measured_value": "152.94",
                                 "unit_of_measure": "mm",
                                 "result": "PASS"
                              },
                              {
                                 "name": "Flatness",
                                 "nominal_value": 25,
                                 "lower_limit": 24.95,
                                 "upper_limit": 25.05,
                                 "measured_value": "25.03",
                                 "unit_of_measure": "mm",
                                 "result": "PASS"
                              },
                              {
                                 "name": "Bore diameter",
                                 "nominal_value": 54,
                                 "lower_limit": 53.99,
                                 "upper_limit": 54.01,
                                 "measured_value": "53.99",
                                 "unit_of_measure": "mm",
                                 "result": "PASS"
                              }
                           ],
                           "issue_ids": [],
                           "inspected_at": "2021-02-09T19:42:04.078Z",
                           "file_ids": [],
                           "url": "https://willing-petal.name/",
                           "metadata": []
                        }
                     }
                  }
               }
            }
         },
         "QmsAudit": {
            "required": true,
            "content": {
               "application/json": {
                  "schema": {
                     "$ref": "#/components/schemas/QmsAudit"
                  },
                  "examples": {
                     "qms_audit": {
                        "summary": "Sample QmsAudit",
                        "value": {
                           "id": "3aa8b8c6-0d65-4699-8dc1-60157f0c9a58",
                           "created_at": "2021-02-20T23:02:37.667Z",
                           "updated_at": "2024-02-18T22:22:08.451Z",
                           "number": "AUD-215",
                           "name": "afraid certification audit",
                           "type": "CERTIFICATION",
                           "status": "IN_REVIEW",
                           "lifecycle_state": "In Review",
                           "standard": "ISO 9001:2015",
                           "scope": "Calibration",
                           "scheduled_at": "2021-02-20T23:02:37.667Z",
                           "start_at": "2023-01-31T18:23:02.361Z",
                           "end_at": "2026-04-14T05:17:54.087Z",
                           "issue_ids": [],
                           "file_ids": [],
                           "url": "https://mushy-obesity.name/",
                           "metadata": []
                        }
                     }
                  }
               }
            }
         }
      },
      "schemas": {
         "QmsAffectedItem": {
            "type": "object",
            "properties": {
               "part_id": {
                  "type": "string",
                  "description": "The PlmPart (revision) ID, when the same vendor also provides PLM"
               },
               "document_id": {
                  "type": "string",
                  "description": "The PlmDocument ID, when the same vendor also provides PLM"
               },
               "part_number": {
                  "type": "string"
               },
               "revision": {
                  "type": "string"
               },
               "lot_number": {
                  "type": "string"
               },
               "serial_number": {
                  "type": "string"
               },
               "quantity": {
                  "type": "number",
                  "description": "Quantity affected"
               }
            },
            "description": "A part, lot or serial affected by a quality record"
         },
         "property_QmsIssue_affected_items": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsAffectedItem"
            }
         },
         "property_QmsIssue_action_ids": {
            "type": "array",
            "items": {
               "type": "string"
            },
            "description": "Linked QmsAction IDs"
         },
         "property_QmsIssue_change_ids": {
            "type": "array",
            "items": {
               "type": "string"
            },
            "description": "Linked PlmChange IDs, when the same vendor also provides PLM"
         },
         "property_QmsIssue_file_ids": {
            "type": "array",
            "items": {
               "type": "string"
            },
            "description": "Attachment IDs retrievable from StorageFile"
         },
         "QmsMetadata": {
            "type": "object",
            "properties": {
               "id": {
                  "type": "string",
                  "description": "The ID of the custom field definition (from the metadata/metadata endpoint)."
               },
               "slug": {
                  "type": "string",
                  "description": "The integration's API name (key) of an existing custom field."
               },
               "value": {
                  "description": "The field's value, typed by `format`.",
                  "additionalProperties": true,
                  "anyOf": [
                     {
                        "type": "object"
                     },
                     {
                        "type": "string"
                     },
                     {
                        "type": "number"
                     },
                     {
                        "type": "boolean"
                     },
                     {
                        "type": "array",
                        "items": {
                           "anyOf": [
                              {
                                 "type": "object"
                              },
                              {
                                 "type": "string"
                              },
                              {
                                 "type": "number"
                              },
                              {
                                 "type": "boolean"
                              }
                           ]
                        }
                     }
                  ]
               },
               "namespace": {
                  "type": "string"
               },
               "format": {
                  "type": "string",
                  "description": "The data type of the custom field, which determines how `value` is formatted.",
                  "enum": [
                     "TEXT",
                     "NUMBER",
                     "DATE",
                     "BOOLEAN",
                     "FILE",
                     "TEXTAREA",
                     "SINGLE_SELECT",
                     "MULTIPLE_SELECT",
                     "MEASUREMENT",
                     "PRICE",
                     "YES_NO",
                     "CURRENCY",
                     "URL"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "extra_data": {
                  "additionalProperties": true,
                  "anyOf": [
                     {
                        "type": "object"
                     },
                     {
                        "type": "string"
                     },
                     {
                        "type": "number"
                     },
                     {
                        "type": "boolean"
                     },
                     {
                        "type": "array",
                        "items": {
                           "anyOf": [
                              {
                                 "type": "object"
                              },
                              {
                                 "type": "string"
                              },
                              {
                                 "type": "number"
                              },
                              {
                                 "type": "boolean"
                              }
                           ]
                        }
                     }
                  ]
               }
            }
         },
         "property_QmsIssue_metadata": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsMetadata"
            }
         },
         "QmsIssue": {
            "type": "object",
            "properties": {
               "id": {
                  "type": "string"
               },
               "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "number": {
                  "type": "string",
                  "description": "Issue number, e.g. NCR-0042"
               },
               "name": {
                  "type": "string"
               },
               "description": {
                  "type": "string"
               },
               "type": {
                  "type": "string",
                  "enum": [
                     "NONCONFORMANCE",
                     "COMPLAINT",
                     "AUDIT_FINDING",
                     "PROBLEM_REPORT",
                     "OTHER"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "original_type": {
                  "type": "string",
                  "description": "The vendor's own issue type or template name"
               },
               "status": {
                  "type": "string",
                  "enum": [
                     "OPEN",
                     "IN_PROGRESS",
                     "IN_REVIEW",
                     "CLOSED",
                     "CANCELLED"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "lifecycle_state": {
                  "type": "string",
                  "description": "Vendor's own state or workflow step name"
               },
               "severity": {
                  "type": "string",
                  "enum": [
                     "LOW",
                     "MEDIUM",
                     "HIGH",
                     "CRITICAL"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "source": {
                  "type": "string",
                  "enum": [
                     "INTERNAL",
                     "SUPPLIER",
                     "CUSTOMER",
                     "AUDIT",
                     "OTHER"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "disposition": {
                  "type": "string",
                  "enum": [
                     "USE_AS_IS",
                     "REWORK",
                     "REPAIR",
                     "SCRAP",
                     "RETURN_TO_VENDOR",
                     "OTHER"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "original_disposition": {
                  "type": "string",
                  "description": "The vendor's own disposition name"
               },
               "affected_items": {
                  "$ref": "#/components/schemas/property_QmsIssue_affected_items"
               },
               "supplier_name": {
                  "type": "string"
               },
               "user_id": {
                  "type": "string",
                  "description": "Owner or assignee (reference to HrisEmployee)"
               },
               "reporter_user_id": {
                  "type": "string",
                  "description": "Who raised the issue (reference to HrisEmployee)"
               },
               "action_ids": {
                  "$ref": "#/components/schemas/property_QmsIssue_action_ids",
                  "description": "Linked QmsAction IDs"
               },
               "change_ids": {
                  "$ref": "#/components/schemas/property_QmsIssue_change_ids",
                  "description": "Linked PlmChange IDs, when the same vendor also provides PLM"
               },
               "opened_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "due_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "closed_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "file_ids": {
                  "$ref": "#/components/schemas/property_QmsIssue_file_ids",
                  "description": "Attachment IDs retrievable from StorageFile"
               },
               "url": {
                  "type": "string",
                  "description": "Deep link to the vendor UI"
               },
               "metadata": {
                  "$ref": "#/components/schemas/property_QmsIssue_metadata"
               },
               "raw": {
                  "type": "object",
                  "description": "Raw data from integration",
                  "additionalProperties": true
               }
            },
            "description": "A nonconformance, complaint, audit finding or other quality issue"
         },
         "QmsIssues": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsIssue"
            }
         },
         "property_QmsAction_issue_ids": {
            "type": "array",
            "items": {
               "type": "string"
            },
            "description": "The QmsIssue IDs this action addresses"
         },
         "property_QmsAction_affected_items": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsAffectedItem"
            }
         },
         "property_QmsAction_file_ids": {
            "type": "array",
            "items": {
               "type": "string"
            },
            "description": "Attachment IDs retrievable from StorageFile"
         },
         "property_QmsAction_metadata": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsMetadata"
            }
         },
         "QmsAction": {
            "type": "object",
            "properties": {
               "id": {
                  "type": "string"
               },
               "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "number": {
                  "type": "string",
                  "description": "Action number, e.g. CAPA-0017"
               },
               "name": {
                  "type": "string"
               },
               "description": {
                  "type": "string"
               },
               "type": {
                  "type": "string",
                  "enum": [
                     "CORRECTIVE",
                     "PREVENTIVE",
                     "SUPPLIER_CORRECTIVE",
                     "OTHER"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "original_type": {
                  "type": "string",
                  "description": "The vendor's own action type or template name"
               },
               "status": {
                  "type": "string",
                  "enum": [
                     "OPEN",
                     "IN_PROGRESS",
                     "IN_REVIEW",
                     "CLOSED",
                     "CANCELLED"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "lifecycle_state": {
                  "type": "string",
                  "description": "Vendor's own state or workflow step name"
               },
               "priority": {
                  "type": "string",
                  "description": "Vendor priority value"
               },
               "issue_ids": {
                  "$ref": "#/components/schemas/property_QmsAction_issue_ids",
                  "description": "The QmsIssue IDs this action addresses"
               },
               "affected_items": {
                  "$ref": "#/components/schemas/property_QmsAction_affected_items"
               },
               "root_cause": {
                  "type": "string"
               },
               "supplier_name": {
                  "type": "string"
               },
               "user_id": {
                  "type": "string",
                  "description": "Owner (reference to HrisEmployee)"
               },
               "due_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "closed_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "verified_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the effectiveness check was completed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "file_ids": {
                  "$ref": "#/components/schemas/property_QmsAction_file_ids",
                  "description": "Attachment IDs retrievable from StorageFile"
               },
               "url": {
                  "type": "string",
                  "description": "Deep link to the vendor UI"
               },
               "metadata": {
                  "$ref": "#/components/schemas/property_QmsAction_metadata"
               },
               "raw": {
                  "type": "object",
                  "description": "Raw data from integration",
                  "additionalProperties": true
               }
            },
            "description": "A corrective or preventive action (CAPA)"
         },
         "QmsActions": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsAction"
            }
         },
         "QmsCharacteristic": {
            "type": "object",
            "properties": {
               "name": {
                  "type": "string"
               },
               "specification": {
                  "type": "string",
                  "description": "Requirement or drawing reference"
               },
               "nominal_value": {
                  "type": "number"
               },
               "lower_limit": {
                  "type": "number"
               },
               "upper_limit": {
                  "type": "number"
               },
               "measured_value": {
                  "type": "string",
                  "description": "Measured or observed value; text so attribute checks fit"
               },
               "unit_of_measure": {
                  "type": "string"
               },
               "result": {
                  "type": "string",
                  "enum": [
                     "PASS",
                     "FAIL",
                     "CONDITIONAL"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "notes": {
                  "type": "string"
               }
            },
            "description": "A characteristic measured or checked during an inspection"
         },
         "property_QmsInspection_characteristics": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsCharacteristic"
            }
         },
         "property_QmsInspection_issue_ids": {
            "type": "array",
            "items": {
               "type": "string"
            },
            "description": "QmsIssue IDs raised from this inspection"
         },
         "property_QmsInspection_file_ids": {
            "type": "array",
            "items": {
               "type": "string"
            },
            "description": "Attachment IDs retrievable from StorageFile"
         },
         "property_QmsInspection_metadata": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsMetadata"
            }
         },
         "QmsInspection": {
            "type": "object",
            "properties": {
               "id": {
                  "type": "string"
               },
               "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "number": {
                  "type": "string"
               },
               "name": {
                  "type": "string"
               },
               "type": {
                  "type": "string",
                  "enum": [
                     "RECEIVING",
                     "IN_PROCESS",
                     "FINAL",
                     "FIRST_ARTICLE",
                     "SOURCE",
                     "OTHER"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "original_type": {
                  "type": "string",
                  "description": "The vendor's own inspection type name"
               },
               "status": {
                  "type": "string",
                  "enum": [
                     "OPEN",
                     "IN_PROGRESS",
                     "IN_REVIEW",
                     "CLOSED",
                     "CANCELLED"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "lifecycle_state": {
                  "type": "string",
                  "description": "Vendor's own state or workflow step name"
               },
               "result": {
                  "type": "string",
                  "enum": [
                     "PASS",
                     "FAIL",
                     "CONDITIONAL"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "plan_name": {
                  "type": "string",
                  "description": "The inspection plan or template followed"
               },
               "part_id": {
                  "type": "string",
                  "description": "The PlmPart (revision) ID, when the same vendor also provides PLM"
               },
               "part_number": {
                  "type": "string"
               },
               "revision": {
                  "type": "string"
               },
               "lot_number": {
                  "type": "string"
               },
               "serial_number": {
                  "type": "string"
               },
               "quantity_inspected": {
                  "type": "number"
               },
               "quantity_accepted": {
                  "type": "number"
               },
               "quantity_rejected": {
                  "type": "number"
               },
               "supplier_name": {
                  "type": "string"
               },
               "characteristics": {
                  "$ref": "#/components/schemas/property_QmsInspection_characteristics"
               },
               "issue_ids": {
                  "$ref": "#/components/schemas/property_QmsInspection_issue_ids",
                  "description": "QmsIssue IDs raised from this inspection"
               },
               "user_id": {
                  "type": "string",
                  "description": "Inspector (reference to HrisEmployee)"
               },
               "inspected_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "file_ids": {
                  "$ref": "#/components/schemas/property_QmsInspection_file_ids",
                  "description": "Attachment IDs retrievable from StorageFile"
               },
               "url": {
                  "type": "string",
                  "description": "Deep link to the vendor UI"
               },
               "metadata": {
                  "$ref": "#/components/schemas/property_QmsInspection_metadata"
               },
               "raw": {
                  "type": "object",
                  "description": "Raw data from integration",
                  "additionalProperties": true
               }
            },
            "description": "An inspection of a part, lot or serial against its requirements"
         },
         "QmsInspections": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsInspection"
            }
         },
         "property_QmsAudit_issue_ids": {
            "type": "array",
            "items": {
               "type": "string"
            },
            "description": "Findings, as QmsIssue IDs"
         },
         "property_QmsAudit_file_ids": {
            "type": "array",
            "items": {
               "type": "string"
            },
            "description": "Attachment IDs retrievable from StorageFile"
         },
         "property_QmsAudit_metadata": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsMetadata"
            }
         },
         "QmsAudit": {
            "type": "object",
            "properties": {
               "id": {
                  "type": "string"
               },
               "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "number": {
                  "type": "string"
               },
               "name": {
                  "type": "string"
               },
               "description": {
                  "type": "string"
               },
               "type": {
                  "type": "string",
                  "enum": [
                     "INTERNAL",
                     "SUPPLIER",
                     "CUSTOMER",
                     "CERTIFICATION",
                     "OTHER"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "original_type": {
                  "type": "string",
                  "description": "The vendor's own audit type name"
               },
               "status": {
                  "type": "string",
                  "enum": [
                     "OPEN",
                     "IN_PROGRESS",
                     "IN_REVIEW",
                     "CLOSED",
                     "CANCELLED"
                  ],
                  "x-speakeasy-unknown-values": "allow"
               },
               "lifecycle_state": {
                  "type": "string",
                  "description": "Vendor's own state or workflow step name"
               },
               "standard": {
                  "type": "string",
                  "description": "Standard audited against, e.g. AS9100D"
               },
               "scope": {
                  "type": "string"
               },
               "supplier_name": {
                  "type": "string"
               },
               "user_id": {
                  "type": "string",
                  "description": "Lead auditor (reference to HrisEmployee)"
               },
               "scheduled_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "start_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "end_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "closed_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               "issue_ids": {
                  "$ref": "#/components/schemas/property_QmsAudit_issue_ids",
                  "description": "Findings, as QmsIssue IDs"
               },
               "file_ids": {
                  "$ref": "#/components/schemas/property_QmsAudit_file_ids",
                  "description": "Attachment IDs retrievable from StorageFile"
               },
               "url": {
                  "type": "string",
                  "description": "Deep link to the vendor UI"
               },
               "metadata": {
                  "$ref": "#/components/schemas/property_QmsAudit_metadata"
               },
               "raw": {
                  "type": "object",
                  "description": "Raw data from integration",
                  "additionalProperties": true
               }
            },
            "description": "An internal, supplier, customer or certification audit"
         },
         "QmsAudits": {
            "type": "array",
            "items": {
               "$ref": "#/components/schemas/QmsAudit"
            }
         }
      }
   },
   "paths": {
      "/qms/{connection_id}/issue": {
         "post": {
            "summary": "Create an issue",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "severity",
                           "source",
                           "disposition",
                           "original_disposition",
                           "affected_items",
                           "supplier_name",
                           "user_id",
                           "reporter_user_id",
                           "action_ids",
                           "change_ids",
                           "opened_at",
                           "due_at",
                           "closed_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "issue"
            ],
            "description": "Creates a QmsIssue. Provide the unified QmsIssue fields in the request body; they are mapped to the provider's API. Returns the created QmsIssue.",
            "requestBody": {
               "description": "A nonconformance, complaint, audit finding or other quality issue",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsIssue"
                     },
                     "examples": {
                        "qms_issue": {
                           "summary": "Sample QmsIssue",
                           "value": {
                              "id": "393c44e7-8113-4472-8e15-9bd24506a3a2",
                              "created_at": "2020-06-10T05:10:42.904Z",
                              "updated_at": "2021-03-15T13:09:21.490Z",
                              "number": "CMP-5154",
                              "name": "Labeling error on individual",
                              "description": "Contabesco convoco uxor avaritia volaticus dens casso.",
                              "type": "COMPLAINT",
                              "original_type": "Customer Complaint",
                              "status": "IN_PROGRESS",
                              "lifecycle_state": "In Progress",
                              "severity": "MEDIUM",
                              "source": "CUSTOMER",
                              "affected_items": [
                                 {
                                    "part_number": "PRT-051260",
                                    "revision": "B",
                                    "serial_number": "SN-419784",
                                    "quantity": 27
                                 }
                              ],
                              "action_ids": [],
                              "change_ids": [],
                              "opened_at": "2024-07-21T15:45:14.959Z",
                              "due_at": "2024-07-31T21:07:04.988Z",
                              "file_ids": [],
                              "url": "https://edible-vicinity.com/",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsIssue"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "createQmsIssue"
         },
         "get": {
            "summary": "List all issues",
            "parameters": [
               {
                  "schema": {
                     "type": "number"
                  },
                  "name": "limit",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "number"
                  },
                  "name": "offset",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "updated_gte",
                  "in": "query",
                  "required": false,
                  "description": "Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "sort",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "order",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "query",
                  "in": "query",
                  "required": false,
                  "description": "Query string to search. eg. email address or name"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "status",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "type",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "part_id",
                  "in": "query",
                  "required": false,
                  "description": "The PLM part ID to filter by"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "user_id",
                  "in": "query",
                  "required": false,
                  "description": "The user/employee ID to filter by (reference to HrisEmployee)"
               },
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "severity",
                           "source",
                           "disposition",
                           "original_disposition",
                           "affected_items",
                           "supplier_name",
                           "user_id",
                           "reporter_user_id",
                           "action_ids",
                           "change_ids",
                           "opened_at",
                           "due_at",
                           "closed_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "issue"
            ],
            "description": "Returns a list of QmsIssues. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.",
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsIssues"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "listQmsIssues"
         }
      },
      "/qms/{connection_id}/issue/{id}": {
         "get": {
            "summary": "Retrieve an issue",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "severity",
                           "source",
                           "disposition",
                           "original_disposition",
                           "affected_items",
                           "supplier_name",
                           "user_id",
                           "reporter_user_id",
                           "action_ids",
                           "change_ids",
                           "opened_at",
                           "due_at",
                           "closed_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Issue",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "issue"
            ],
            "description": "Retrieves a single QmsIssue by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.",
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsIssue"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "getQmsIssue"
         },
         "put": {
            "summary": "Update an issue",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "severity",
                           "source",
                           "disposition",
                           "original_disposition",
                           "affected_items",
                           "supplier_name",
                           "user_id",
                           "reporter_user_id",
                           "action_ids",
                           "change_ids",
                           "opened_at",
                           "due_at",
                           "closed_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Issue",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "issue"
            ],
            "description": "Updates the QmsIssue identified by `id`. Provide the unified QmsIssue fields to change in the request body.",
            "requestBody": {
               "description": "A nonconformance, complaint, audit finding or other quality issue",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsIssue"
                     },
                     "examples": {
                        "qms_issue": {
                           "summary": "Sample QmsIssue",
                           "value": {
                              "id": "ef36093f-e939-4856-8dc7-2436c7b6b92c",
                              "created_at": "2020-06-10T05:10:42.904Z",
                              "updated_at": "2021-03-15T13:09:21.491Z",
                              "number": "CMP-5154",
                              "name": "Labeling error on individual",
                              "description": "Contabesco convoco uxor avaritia volaticus dens casso.",
                              "type": "COMPLAINT",
                              "original_type": "Customer Complaint",
                              "status": "IN_PROGRESS",
                              "lifecycle_state": "In Progress",
                              "severity": "MEDIUM",
                              "source": "CUSTOMER",
                              "affected_items": [
                                 {
                                    "part_number": "PRT-051260",
                                    "revision": "B",
                                    "serial_number": "SN-419784",
                                    "quantity": 27
                                 }
                              ],
                              "action_ids": [],
                              "change_ids": [],
                              "opened_at": "2024-07-21T15:45:14.965Z",
                              "due_at": "2024-07-31T21:07:04.994Z",
                              "file_ids": [],
                              "url": "https://edible-vicinity.com/",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsIssue"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "updateQmsIssue"
         },
         "patch": {
            "summary": "Update an issue",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "severity",
                           "source",
                           "disposition",
                           "original_disposition",
                           "affected_items",
                           "supplier_name",
                           "user_id",
                           "reporter_user_id",
                           "action_ids",
                           "change_ids",
                           "opened_at",
                           "due_at",
                           "closed_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Issue",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "issue"
            ],
            "description": "Updates the QmsIssue identified by `id`. Provide the unified QmsIssue fields to change in the request body.",
            "requestBody": {
               "description": "A nonconformance, complaint, audit finding or other quality issue",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsIssue"
                     },
                     "examples": {
                        "qms_issue": {
                           "summary": "Sample QmsIssue",
                           "value": {
                              "id": "ef36093f-e939-4856-8dc7-2436c7b6b92c",
                              "created_at": "2020-06-10T05:10:42.904Z",
                              "updated_at": "2021-03-15T13:09:21.491Z",
                              "number": "CMP-5154",
                              "name": "Labeling error on individual",
                              "description": "Contabesco convoco uxor avaritia volaticus dens casso.",
                              "type": "COMPLAINT",
                              "original_type": "Customer Complaint",
                              "status": "IN_PROGRESS",
                              "lifecycle_state": "In Progress",
                              "severity": "MEDIUM",
                              "source": "CUSTOMER",
                              "affected_items": [
                                 {
                                    "part_number": "PRT-051260",
                                    "revision": "B",
                                    "serial_number": "SN-419784",
                                    "quantity": 27
                                 }
                              ],
                              "action_ids": [],
                              "change_ids": [],
                              "opened_at": "2024-07-21T15:45:14.965Z",
                              "due_at": "2024-07-31T21:07:04.994Z",
                              "file_ids": [],
                              "url": "https://edible-vicinity.com/",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsIssue"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "patchQmsIssue"
         }
      },
      "/qms/{connection_id}/action": {
         "post": {
            "summary": "Create an action",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "priority",
                           "issue_ids",
                           "affected_items",
                           "root_cause",
                           "supplier_name",
                           "user_id",
                           "due_at",
                           "closed_at",
                           "verified_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "action"
            ],
            "description": "Creates a QmsAction. Provide the unified QmsAction fields in the request body; they are mapped to the provider's API. Returns the created QmsAction.",
            "requestBody": {
               "description": "A corrective or preventive action (CAPA)",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsAction"
                     },
                     "examples": {
                        "qms_action": {
                           "summary": "Sample QmsAction",
                           "value": {
                              "id": "3647f87b-6381-4d0e-b64a-7bdcfac417dc",
                              "created_at": "2022-03-07T03:01:29.933Z",
                              "updated_at": "2025-03-01T13:41:52.677Z",
                              "number": "CAPA-6268",
                              "name": "Add inspection step",
                              "description": "Apparatus aegre ascisco color fugit cunctatio attollo vestrum amaritudo.",
                              "type": "CORRECTIVE",
                              "original_type": "Corrective Action",
                              "status": "CANCELLED",
                              "lifecycle_state": "Cancelled",
                              "priority": "Medium",
                              "issue_ids": [],
                              "affected_items": [],
                              "root_cause": "Worn tooling",
                              "due_at": "2022-04-25T11:37:43.155Z",
                              "file_ids": [],
                              "url": "https://scientific-kiss.biz",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsAction"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "createQmsAction"
         },
         "get": {
            "summary": "List all actions",
            "parameters": [
               {
                  "schema": {
                     "type": "number"
                  },
                  "name": "limit",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "number"
                  },
                  "name": "offset",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "updated_gte",
                  "in": "query",
                  "required": false,
                  "description": "Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "sort",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "order",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "query",
                  "in": "query",
                  "required": false,
                  "description": "Query string to search. eg. email address or name"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "status",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "type",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "issue_id",
                  "in": "query",
                  "required": false,
                  "description": "The quality issue ID to filter by"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "user_id",
                  "in": "query",
                  "required": false,
                  "description": "The user/employee ID to filter by (reference to HrisEmployee)"
               },
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "priority",
                           "issue_ids",
                           "affected_items",
                           "root_cause",
                           "supplier_name",
                           "user_id",
                           "due_at",
                           "closed_at",
                           "verified_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "action"
            ],
            "description": "Returns a list of QmsActions. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.",
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsActions"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "listQmsActions"
         }
      },
      "/qms/{connection_id}/action/{id}": {
         "get": {
            "summary": "Retrieve an action",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "priority",
                           "issue_ids",
                           "affected_items",
                           "root_cause",
                           "supplier_name",
                           "user_id",
                           "due_at",
                           "closed_at",
                           "verified_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Action",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "action"
            ],
            "description": "Retrieves a single QmsAction by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.",
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsAction"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "getQmsAction"
         },
         "put": {
            "summary": "Update an action",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "priority",
                           "issue_ids",
                           "affected_items",
                           "root_cause",
                           "supplier_name",
                           "user_id",
                           "due_at",
                           "closed_at",
                           "verified_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Action",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "action"
            ],
            "description": "Updates the QmsAction identified by `id`. Provide the unified QmsAction fields to change in the request body.",
            "requestBody": {
               "description": "A corrective or preventive action (CAPA)",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsAction"
                     },
                     "examples": {
                        "qms_action": {
                           "summary": "Sample QmsAction",
                           "value": {
                              "id": "0ca8bdd7-13ec-403f-b3c6-af49e7d9e003",
                              "created_at": "2022-03-07T03:01:29.933Z",
                              "updated_at": "2025-03-01T13:41:52.682Z",
                              "number": "CAPA-6268",
                              "name": "Add inspection step",
                              "description": "Apparatus aegre ascisco color fugit cunctatio attollo vestrum amaritudo.",
                              "type": "CORRECTIVE",
                              "original_type": "Corrective Action",
                              "status": "CANCELLED",
                              "lifecycle_state": "Cancelled",
                              "priority": "Medium",
                              "issue_ids": [],
                              "affected_items": [],
                              "root_cause": "Worn tooling",
                              "due_at": "2022-04-25T11:37:43.155Z",
                              "file_ids": [],
                              "url": "https://scientific-kiss.biz",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsAction"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "updateQmsAction"
         },
         "patch": {
            "summary": "Update an action",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "priority",
                           "issue_ids",
                           "affected_items",
                           "root_cause",
                           "supplier_name",
                           "user_id",
                           "due_at",
                           "closed_at",
                           "verified_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Action",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "action"
            ],
            "description": "Updates the QmsAction identified by `id`. Provide the unified QmsAction fields to change in the request body.",
            "requestBody": {
               "description": "A corrective or preventive action (CAPA)",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsAction"
                     },
                     "examples": {
                        "qms_action": {
                           "summary": "Sample QmsAction",
                           "value": {
                              "id": "0ca8bdd7-13ec-403f-b3c6-af49e7d9e003",
                              "created_at": "2022-03-07T03:01:29.933Z",
                              "updated_at": "2025-03-01T13:41:52.682Z",
                              "number": "CAPA-6268",
                              "name": "Add inspection step",
                              "description": "Apparatus aegre ascisco color fugit cunctatio attollo vestrum amaritudo.",
                              "type": "CORRECTIVE",
                              "original_type": "Corrective Action",
                              "status": "CANCELLED",
                              "lifecycle_state": "Cancelled",
                              "priority": "Medium",
                              "issue_ids": [],
                              "affected_items": [],
                              "root_cause": "Worn tooling",
                              "due_at": "2022-04-25T11:37:43.155Z",
                              "file_ids": [],
                              "url": "https://scientific-kiss.biz",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsAction"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "patchQmsAction"
         }
      },
      "/qms/{connection_id}/inspection": {
         "post": {
            "summary": "Create an inspection",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "result",
                           "plan_name",
                           "part_id",
                           "part_number",
                           "revision",
                           "lot_number",
                           "serial_number",
                           "quantity_inspected",
                           "quantity_accepted",
                           "quantity_rejected",
                           "supplier_name",
                           "characteristics",
                           "issue_ids",
                           "user_id",
                           "inspected_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "inspection"
            ],
            "description": "Creates a QmsInspection. Provide the unified QmsInspection fields in the request body; they are mapped to the provider's API. Returns the created QmsInspection.",
            "requestBody": {
               "description": "An inspection of a part, lot or serial against its requirements",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsInspection"
                     },
                     "examples": {
                        "qms_inspection": {
                           "summary": "Sample QmsInspection",
                           "value": {
                              "id": "fa7e67b5-1eee-4768-815c-b27964301bdd",
                              "created_at": "2020-04-18T21:23:54.000Z",
                              "updated_at": "2026-05-27T00:35:41.397Z",
                              "number": "INSP-96996",
                              "name": "Source inspection",
                              "type": "SOURCE",
                              "status": "CLOSED",
                              "lifecycle_state": "Complete",
                              "result": "PASS",
                              "part_number": "PRT-048483",
                              "revision": "A",
                              "quantity_inspected": 41,
                              "quantity_accepted": 41,
                              "quantity_rejected": 0,
                              "supplier_name": "Lehner Inc",
                              "characteristics": [
                                 {
                                    "name": "Hole position",
                                    "nominal_value": 153,
                                    "lower_limit": 152.9,
                                    "upper_limit": 153.1,
                                    "measured_value": "152.94",
                                    "unit_of_measure": "mm",
                                    "result": "PASS"
                                 },
                                 {
                                    "name": "Flatness",
                                    "nominal_value": 25,
                                    "lower_limit": 24.95,
                                    "upper_limit": 25.05,
                                    "measured_value": "25.03",
                                    "unit_of_measure": "mm",
                                    "result": "PASS"
                                 },
                                 {
                                    "name": "Bore diameter",
                                    "nominal_value": 54,
                                    "lower_limit": 53.99,
                                    "upper_limit": 54.01,
                                    "measured_value": "53.99",
                                    "unit_of_measure": "mm",
                                    "result": "PASS"
                                 }
                              ],
                              "issue_ids": [],
                              "inspected_at": "2021-02-09T19:42:04.077Z",
                              "file_ids": [],
                              "url": "https://willing-petal.name/",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsInspection"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "createQmsInspection"
         },
         "get": {
            "summary": "List all inspections",
            "parameters": [
               {
                  "schema": {
                     "type": "number"
                  },
                  "name": "limit",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "number"
                  },
                  "name": "offset",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "updated_gte",
                  "in": "query",
                  "required": false,
                  "description": "Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "sort",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "order",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "query",
                  "in": "query",
                  "required": false,
                  "description": "Query string to search. eg. email address or name"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "status",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "type",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "part_id",
                  "in": "query",
                  "required": false,
                  "description": "The PLM part ID to filter by"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "user_id",
                  "in": "query",
                  "required": false,
                  "description": "The user/employee ID to filter by (reference to HrisEmployee)"
               },
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "result",
                           "plan_name",
                           "part_id",
                           "part_number",
                           "revision",
                           "lot_number",
                           "serial_number",
                           "quantity_inspected",
                           "quantity_accepted",
                           "quantity_rejected",
                           "supplier_name",
                           "characteristics",
                           "issue_ids",
                           "user_id",
                           "inspected_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "inspection"
            ],
            "description": "Returns a list of QmsInspections. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.",
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsInspections"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "listQmsInspections"
         }
      },
      "/qms/{connection_id}/inspection/{id}": {
         "get": {
            "summary": "Retrieve an inspection",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "result",
                           "plan_name",
                           "part_id",
                           "part_number",
                           "revision",
                           "lot_number",
                           "serial_number",
                           "quantity_inspected",
                           "quantity_accepted",
                           "quantity_rejected",
                           "supplier_name",
                           "characteristics",
                           "issue_ids",
                           "user_id",
                           "inspected_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Inspection",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "inspection"
            ],
            "description": "Retrieves a single QmsInspection by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.",
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsInspection"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "getQmsInspection"
         },
         "put": {
            "summary": "Update an inspection",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "result",
                           "plan_name",
                           "part_id",
                           "part_number",
                           "revision",
                           "lot_number",
                           "serial_number",
                           "quantity_inspected",
                           "quantity_accepted",
                           "quantity_rejected",
                           "supplier_name",
                           "characteristics",
                           "issue_ids",
                           "user_id",
                           "inspected_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Inspection",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "inspection"
            ],
            "description": "Updates the QmsInspection identified by `id`. Provide the unified QmsInspection fields to change in the request body.",
            "requestBody": {
               "description": "An inspection of a part, lot or serial against its requirements",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsInspection"
                     },
                     "examples": {
                        "qms_inspection": {
                           "summary": "Sample QmsInspection",
                           "value": {
                              "id": "983e79ec-8c50-4d29-9ff2-322dacaad000",
                              "created_at": "2020-04-18T21:23:54.000Z",
                              "updated_at": "2026-05-27T00:35:41.407Z",
                              "number": "INSP-96996",
                              "name": "Source inspection",
                              "type": "SOURCE",
                              "status": "CLOSED",
                              "lifecycle_state": "Complete",
                              "result": "PASS",
                              "part_number": "PRT-048483",
                              "revision": "A",
                              "quantity_inspected": 41,
                              "quantity_accepted": 41,
                              "quantity_rejected": 0,
                              "supplier_name": "Lehner Inc",
                              "characteristics": [
                                 {
                                    "name": "Hole position",
                                    "nominal_value": 153,
                                    "lower_limit": 152.9,
                                    "upper_limit": 153.1,
                                    "measured_value": "152.94",
                                    "unit_of_measure": "mm",
                                    "result": "PASS"
                                 },
                                 {
                                    "name": "Flatness",
                                    "nominal_value": 25,
                                    "lower_limit": 24.95,
                                    "upper_limit": 25.05,
                                    "measured_value": "25.03",
                                    "unit_of_measure": "mm",
                                    "result": "PASS"
                                 },
                                 {
                                    "name": "Bore diameter",
                                    "nominal_value": 54,
                                    "lower_limit": 53.99,
                                    "upper_limit": 54.01,
                                    "measured_value": "53.99",
                                    "unit_of_measure": "mm",
                                    "result": "PASS"
                                 }
                              ],
                              "issue_ids": [],
                              "inspected_at": "2021-02-09T19:42:04.078Z",
                              "file_ids": [],
                              "url": "https://willing-petal.name/",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsInspection"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "updateQmsInspection"
         },
         "patch": {
            "summary": "Update an inspection",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "result",
                           "plan_name",
                           "part_id",
                           "part_number",
                           "revision",
                           "lot_number",
                           "serial_number",
                           "quantity_inspected",
                           "quantity_accepted",
                           "quantity_rejected",
                           "supplier_name",
                           "characteristics",
                           "issue_ids",
                           "user_id",
                           "inspected_at",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Inspection",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "inspection"
            ],
            "description": "Updates the QmsInspection identified by `id`. Provide the unified QmsInspection fields to change in the request body.",
            "requestBody": {
               "description": "An inspection of a part, lot or serial against its requirements",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsInspection"
                     },
                     "examples": {
                        "qms_inspection": {
                           "summary": "Sample QmsInspection",
                           "value": {
                              "id": "983e79ec-8c50-4d29-9ff2-322dacaad000",
                              "created_at": "2020-04-18T21:23:54.000Z",
                              "updated_at": "2026-05-27T00:35:41.407Z",
                              "number": "INSP-96996",
                              "name": "Source inspection",
                              "type": "SOURCE",
                              "status": "CLOSED",
                              "lifecycle_state": "Complete",
                              "result": "PASS",
                              "part_number": "PRT-048483",
                              "revision": "A",
                              "quantity_inspected": 41,
                              "quantity_accepted": 41,
                              "quantity_rejected": 0,
                              "supplier_name": "Lehner Inc",
                              "characteristics": [
                                 {
                                    "name": "Hole position",
                                    "nominal_value": 153,
                                    "lower_limit": 152.9,
                                    "upper_limit": 153.1,
                                    "measured_value": "152.94",
                                    "unit_of_measure": "mm",
                                    "result": "PASS"
                                 },
                                 {
                                    "name": "Flatness",
                                    "nominal_value": 25,
                                    "lower_limit": 24.95,
                                    "upper_limit": 25.05,
                                    "measured_value": "25.03",
                                    "unit_of_measure": "mm",
                                    "result": "PASS"
                                 },
                                 {
                                    "name": "Bore diameter",
                                    "nominal_value": 54,
                                    "lower_limit": 53.99,
                                    "upper_limit": 54.01,
                                    "measured_value": "53.99",
                                    "unit_of_measure": "mm",
                                    "result": "PASS"
                                 }
                              ],
                              "issue_ids": [],
                              "inspected_at": "2021-02-09T19:42:04.078Z",
                              "file_ids": [],
                              "url": "https://willing-petal.name/",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsInspection"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "patchQmsInspection"
         }
      },
      "/qms/{connection_id}/audit": {
         "post": {
            "summary": "Create an audit",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "standard",
                           "scope",
                           "supplier_name",
                           "user_id",
                           "scheduled_at",
                           "start_at",
                           "end_at",
                           "closed_at",
                           "issue_ids",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "audit"
            ],
            "description": "Creates a QmsAudit. Provide the unified QmsAudit fields in the request body; they are mapped to the provider's API. Returns the created QmsAudit.",
            "requestBody": {
               "description": "An internal, supplier, customer or certification audit",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsAudit"
                     },
                     "examples": {
                        "qms_audit": {
                           "summary": "Sample QmsAudit",
                           "value": {
                              "id": "9d43f854-764d-4c25-8744-3a722a230cd6",
                              "created_at": "2021-02-20T23:02:37.667Z",
                              "updated_at": "2024-02-18T22:22:08.448Z",
                              "number": "AUD-215",
                              "name": "afraid certification audit",
                              "type": "CERTIFICATION",
                              "status": "IN_REVIEW",
                              "lifecycle_state": "In Review",
                              "standard": "ISO 9001:2015",
                              "scope": "Calibration",
                              "scheduled_at": "2021-02-20T23:02:37.667Z",
                              "start_at": "2023-01-31T18:23:02.359Z",
                              "end_at": "2026-04-14T05:17:54.082Z",
                              "issue_ids": [],
                              "file_ids": [],
                              "url": "https://mushy-obesity.name/",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsAudit"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "createQmsAudit"
         },
         "get": {
            "summary": "List all audits",
            "parameters": [
               {
                  "schema": {
                     "type": "number"
                  },
                  "name": "limit",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "number"
                  },
                  "name": "offset",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "updated_gte",
                  "in": "query",
                  "required": false,
                  "description": "Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "sort",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "order",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "query",
                  "in": "query",
                  "required": false,
                  "description": "Query string to search. eg. email address or name"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "status",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "type",
                  "in": "query",
                  "required": false
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "user_id",
                  "in": "query",
                  "required": false,
                  "description": "The user/employee ID to filter by (reference to HrisEmployee)"
               },
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "standard",
                           "scope",
                           "supplier_name",
                           "user_id",
                           "scheduled_at",
                           "start_at",
                           "end_at",
                           "closed_at",
                           "issue_ids",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "audit"
            ],
            "description": "Returns a list of QmsAudits. Narrow the results with the query parameters before paging, then page through them with `limit` and `offset` (the default and maximum page size depend on the integration). Use `fields` to return only the fields you need and reduce the response size. When the integration supports a total count, it is returned in the `X-Total-Count` response header. Use each item's `id` to retrieve, update, or delete it where those operations are supported.",
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsAudits"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "listQmsAudits"
         }
      },
      "/qms/{connection_id}/audit/{id}": {
         "get": {
            "summary": "Retrieve an audit",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "standard",
                           "scope",
                           "supplier_name",
                           "user_id",
                           "scheduled_at",
                           "start_at",
                           "end_at",
                           "closed_at",
                           "issue_ids",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Audit",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "audit"
            ],
            "description": "Retrieves a single QmsAudit by its `id`. Obtain `id` values from the corresponding list endpoint. Use `fields` to return only the fields you need.",
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsAudit"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "getQmsAudit"
         },
         "put": {
            "summary": "Update an audit",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "standard",
                           "scope",
                           "supplier_name",
                           "user_id",
                           "scheduled_at",
                           "start_at",
                           "end_at",
                           "closed_at",
                           "issue_ids",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Audit",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "audit"
            ],
            "description": "Updates the QmsAudit identified by `id`. Provide the unified QmsAudit fields to change in the request body.",
            "requestBody": {
               "description": "An internal, supplier, customer or certification audit",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsAudit"
                     },
                     "examples": {
                        "qms_audit": {
                           "summary": "Sample QmsAudit",
                           "value": {
                              "id": "3aa8b8c6-0d65-4699-8dc1-60157f0c9a58",
                              "created_at": "2021-02-20T23:02:37.667Z",
                              "updated_at": "2024-02-18T22:22:08.451Z",
                              "number": "AUD-215",
                              "name": "afraid certification audit",
                              "type": "CERTIFICATION",
                              "status": "IN_REVIEW",
                              "lifecycle_state": "In Review",
                              "standard": "ISO 9001:2015",
                              "scope": "Calibration",
                              "scheduled_at": "2021-02-20T23:02:37.667Z",
                              "start_at": "2023-01-31T18:23:02.361Z",
                              "end_at": "2026-04-14T05:17:54.087Z",
                              "issue_ids": [],
                              "file_ids": [],
                              "url": "https://mushy-obesity.name/",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsAudit"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "updateQmsAudit"
         },
         "patch": {
            "summary": "Update an audit",
            "parameters": [
               {
                  "schema": {
                     "type": "array",
                     "items": {
                        "type": "string",
                        "enum": [
                           "id",
                           "created_at",
                           "updated_at",
                           "number",
                           "name",
                           "description",
                           "type",
                           "original_type",
                           "status",
                           "lifecycle_state",
                           "standard",
                           "scope",
                           "supplier_name",
                           "user_id",
                           "scheduled_at",
                           "start_at",
                           "end_at",
                           "closed_at",
                           "issue_ids",
                           "file_ids",
                           "url",
                           "metadata",
                           "raw"
                        ]
                     }
                  },
                  "name": "fields",
                  "in": "query",
                  "required": false,
                  "description": "Fields to return"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "name": "raw",
                  "in": "query",
                  "required": false,
                  "description": "Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar"
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the connection",
                  "name": "connection_id",
                  "in": "path",
                  "required": true
               },
               {
                  "schema": {
                     "type": "string"
                  },
                  "description": "ID of the Audit",
                  "name": "id",
                  "in": "path",
                  "required": true
               }
            ],
            "tags": [
               "qms",
               "audit"
            ],
            "description": "Updates the QmsAudit identified by `id`. Provide the unified QmsAudit fields to change in the request body.",
            "requestBody": {
               "description": "An internal, supplier, customer or certification audit",
               "required": true,
               "content": {
                  "application/json": {
                     "schema": {
                        "$ref": "#/components/schemas/QmsAudit"
                     },
                     "examples": {
                        "qms_audit": {
                           "summary": "Sample QmsAudit",
                           "value": {
                              "id": "3aa8b8c6-0d65-4699-8dc1-60157f0c9a58",
                              "created_at": "2021-02-20T23:02:37.667Z",
                              "updated_at": "2024-02-18T22:22:08.451Z",
                              "number": "AUD-215",
                              "name": "afraid certification audit",
                              "type": "CERTIFICATION",
                              "status": "IN_REVIEW",
                              "lifecycle_state": "In Review",
                              "standard": "ISO 9001:2015",
                              "scope": "Calibration",
                              "scheduled_at": "2021-02-20T23:02:37.667Z",
                              "start_at": "2023-01-31T18:23:02.361Z",
                              "end_at": "2026-04-14T05:17:54.087Z",
                              "issue_ids": [],
                              "file_ids": [],
                              "url": "https://mushy-obesity.name/",
                              "metadata": []
                           }
                        }
                     }
                  }
               }
            },
            "responses": {
               "200": {
                  "content": {
                     "application/json": {
                        "schema": {
                           "$ref": "#/components/schemas/QmsAudit"
                        }
                     }
                  },
                  "description": "Successful"
               }
            },
            "security": [
               {
                  "jwt": []
               }
            ],
            "operationId": "patchQmsAudit"
         }
      }
   }
}