{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-appd-change-orders-with-keys-schema.json",
  "title": "data_appd_change_orders_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-pm-openapi.yml#/components/schemas/data_appd_change_orders_withKeys",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "__ryvitKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of key paths that can be used to retrieve this object."
        },
        "__modifiedUTC": {
          "type": "string",
          "description": "UTC timestamp of when this object was last modified in the cache."
        }
      }
    },
    {
      "$ref": "#/$defs/data_appd_change_orders"
    }
  ],
  "$defs": {
    "data_appd_change_orders": {
      "required": [
        "PMCo",
        "Project",
        "ACO"
      ],
      "type": "object",
      "properties": {
        "PMCo": {
          "type": "integer",
          "description": ""
        },
        "Project": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "ACO": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "ACOSequence": {
          "type": "integer",
          "description": ""
        },
        "Description": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Issue": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Contract": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PendingStatus": {
          "type": "integer",
          "description": ""
        },
        "Date1": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Date2": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Date3": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ApprovalDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UniqueAttchID": {
          "maxLength": 36,
          "minLength": 36,
          "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "IntExt": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "ROMAmount": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "Details": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Reference": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "InitiatedBy": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Priority": {
          "type": "integer",
          "description": ""
        },
        "ReasonCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BudgetType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "SubType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "ContractType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "Status": {
          "maxLength": 6,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "POType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "ResponsiblePerson": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "DateCreated": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "VendorGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "ResponsibleFirm": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "PricingMethod": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "__custom_fields": {
          "type": "object",
          "description": "This property will be added if there are any custom fields defined for this object in Vista.  Each custom field will be a property of this object."
        },
        "LineItems": {
          "type": "array",
          "items": {
            "required": [
              "ACOItem",
              "KeyID"
            ],
            "type": "object",
            "properties": {
              "PCOType": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "PCO": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "PCOItem": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "ACO": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "ACOItem": {
                "maxLength": 10,
                "type": "string",
                "description": ""
              },
              "Description": {
                "maxLength": 60,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Status": {
                "maxLength": 6,
                "type": "string",
                "description": ""
              },
              "ApprovedDate": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "UM": {
                "maxLength": 3,
                "type": "string",
                "description": ""
              },
              "Units": {
                "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
                "type": "string",
                "description": ""
              },
              "UnitPrice": {
                "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
                "type": "string",
                "description": ""
              },
              "PendingAmount": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "ApprovedAmt": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Issue": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "Date1": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Date2": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Date3": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Contract": {
                "maxLength": 10,
                "type": "string",
                "description": ""
              },
              "ContractItem": {
                "maxLength": 16,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Approved": {
                "enum": [
                  "Y",
                  "N"
                ],
                "type": "string",
                "description": ""
              },
              "ApprovedBy": {
                "maxLength": 128,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "ForcePhaseYN": {
                "enum": [
                  "Y",
                  "N"
                ],
                "type": "string",
                "description": ""
              },
              "FixedAmountYN": {
                "enum": [
                  "Y",
                  "N"
                ],
                "type": "string",
                "description": ""
              },
              "FixedAmount": {
                "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "Notes": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "BillGroup": {
                "maxLength": 20,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "ChangeDays": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": ""
              },
              "UniqueAttchID": {
                "maxLength": 36,
                "minLength": 36,
                "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "InterfacedDate": {
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "ProjectCopy": {
                "enum": [
                  "Y",
                  "N"
                ],
                "type": "string",
                "description": ""
              },
              "BudgetNo": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "RFIType": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "RFI": {
                "maxLength": 10,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "KeyID": {
                "type": "integer",
                "description": ""
              },
              "InterfacedBy": {
                "maxLength": 128,
                "type": [
                  "string",
                  "null"
                ],
                "description": ""
              },
              "__custom_fields": {
                "type": "object",
                "description": "This property will be added if there are any custom fields defined for this object in Vista.  Each custom field will be a property of this object."
              },
              "EstimatePurchaseDetails": {
                "type": "array",
                "items": {
                  "required": [
                    "PhaseGroup",
                    "Phase",
                    "CostType",
                    "KeyID"
                  ],
                  "type": "object",
                  "properties": {
                    "PCOType": {
                      "maxLength": 10,
                      "type": "string",
                      "description": ""
                    },
                    "PCO": {
                      "maxLength": 10,
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "PCOItem": {
                      "maxLength": 10,
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "ACO": {
                      "maxLength": 10,
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "ACOItem": {
                      "maxLength": 10,
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "PhaseGroup": {
                      "type": "integer",
                      "description": ""
                    },
                    "Phase": {
                      "maxLength": 20,
                      "type": "string",
                      "description": ""
                    },
                    "CostType": {
                      "type": "integer",
                      "description": ""
                    },
                    "EstUnits": {
                      "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
                      "type": "string",
                      "description": ""
                    },
                    "UM": {
                      "maxLength": 3,
                      "type": "string",
                      "description": ""
                    },
                    "UnitHours": {
                      "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
                      "type": "string",
                      "description": ""
                    },
                    "EstHours": {
                      "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
                      "type": "string",
                      "description": ""
                    },
                    "HourCost": {
                      "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
                      "type": "string",
                      "description": ""
                    },
                    "UnitCost": {
                      "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
                      "type": "string",
                      "description": ""
                    },
                    "ECM": {
                      "maxLength": 1,
                      "type": "string",
                      "description": ""
                    },
                    "EstCost": {
                      "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                      "type": "string",
                      "description": ""
                    },
                    "SendYN": {
                      "enum": [
                        "Y",
                        "N"
                      ],
                      "type": "string",
                      "description": ""
                    },
                    "InterfacedDate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Format: YYYY-MM-DD",
                      "format": "date"
                    },
                    "Notes": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "UniqueAttchID": {
                      "maxLength": 36,
                      "minLength": 36,
                      "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "KeyID": {
                      "type": "integer",
                      "description": ""
                    },
                    "CreatedFromAddOn": {
                      "enum": [
                        "Y",
                        "N"
                      ],
                      "type": "string",
                      "description": ""
                    },
                    "DistributedAmt": {
                      "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                      "type": "string",
                      "description": ""
                    },
                    "SubCO": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": ""
                    },
                    "SubCOSeq": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": ""
                    },
                    "PO": {
                      "maxLength": 30,
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "Subcontract": {
                      "maxLength": 30,
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "PurchaseAmt": {
                      "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "VendorGroup": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": ""
                    },
                    "Vendor": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": ""
                    },
                    "POSLItem": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": ""
                    },
                    "POCONum": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": ""
                    },
                    "POCONumSeq": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": ""
                    },
                    "MaterialCode": {
                      "maxLength": 20,
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "PurchaseUnits": {
                      "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "PurchaseUM": {
                      "maxLength": 3,
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "PurchaseUnitCost": {
                      "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": ""
                    },
                    "CreateSL": {
                      "enum": [
                        "Y",
                        "N"
                      ],
                      "type": "string",
                      "description": ""
                    },
                    "FromImport": {
                      "enum": [
                        "Y",
                        "N"
                      ],
                      "type": "string",
                      "description": ""
                    },
                    "__custom_fields": {
                      "type": "object",
                      "description": "This property will be added if there are any custom fields defined for this object in Vista.  Each custom field will be a property of this object."
                    }
                  }
                },
                "description": ""
              }
            }
          },
          "description": ""
        }
      }
    }
  }
}