{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/everstage/json-schema/everstage-quote-update-response-model-schema.json",
  "title": "QuoteUpdateResponseModel",
  "description": "Response body for PATCH /v1/cpq/quotes/{quote_id}.",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/everstage-openapi.json#/components/schemas/QuoteUpdateResponseModel",
  "properties": {
    "quote_id": {
      "type": "string",
      "title": "Quote Id",
      "description": "Echoed from the path parameter."
    },
    "status": {
      "type": "string",
      "title": "Status",
      "description": "Always accepted on success."
    },
    "message": {
      "type": "string",
      "title": "Message",
      "description": "Human-readable description of the outcome."
    },
    "processed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Processed At",
      "description": "UTC timestamp when the server processed the request."
    },
    "post_update_quote_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Post Update Quote Status",
      "description": "Quote status after the update and approval rule evaluation. Always check this field — status may change as a result of the update (e.g. Approved → Pending Approval if an approval threshold is now met)."
    }
  },
  "type": "object",
  "required": [
    "quote_id",
    "status",
    "message",
    "processed_at"
  ]
}