---
title: "Set a contract value with its verbatim quote"
method: POST
path: "/v1/price-baseline/models/{id}/values"
tags: ["Contract Pricing"]
---

# Set a contract value with its verbatim quote

`POST /v1/price-baseline/models/{id}/values`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/price-baseline/models/{id}/values`
- Auth: HTTP bearer

Sets the value of a contract variable (not an index variable). The quote must occur in the model's contract document and print the value, otherwise nothing is saved (422). The model is saved through the same path as an edit.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `variable` string, required: Name of a non-index variable of the model.
  - `value` number, required
  - `quote` string, required: The passage of the contract that prints the value.

## Response `201`

The updated model.

- PriceBaselineModel: A stored price model; one per contract document.
  - `id` string, uuid
  - `customer_id` string, uuid
  - `document_id` string, uuid: The contract document the model was read from.
  - `contract_label` string
  - `model` PriceBaselineModelBody: A contract's price clause as one standard, evaluable model.
    - `contract_label` string, required: Contract title or number as printed.
    - `contract_number` PriceBaselinePrinted, nullable: One printed field and the passage that prints it.
      - `value` string
      - `evidence` PriceBaselineEvidence, nullable: A verbatim passage from a workspace document backing one value.
        - `document_id` string, uuid, required
        - `quote` string, required: The passage exactly as the document prints it.
        - `verified` boolean, required: True only when the quote occurs in the document text and carries the value it backs.
        - `problem` string: Why verification failed; absent when verified.
        - `anchored` boolean: The extracted quote was a paraphrase and `quote` is the document line that prints the value.
        - `row` string: The whole table row a verified quote sits in, kept when its other cells print what the quote left out.
    - `customer` PriceBaselinePrinted, nullable: One printed field and the passage that prints it.
      - `value` string
      - `evidence` PriceBaselineEvidence, nullable: A verbatim passage from a workspace document backing one value.
        - `document_id` string, uuid, required
        - `quote` string, required: The passage exactly as the document prints it.
        - `verified` boolean, required: True only when the quote occurs in the document text and carries the value it backs.
        - `problem` string: Why verification failed; absent when verified.
        - `anchored` boolean: The extracted quote was a paraphrase and `quote` is the document line that prints the value.
        - `row` string: The whole table row a verified quote sits in, kept when its other cells print what the quote left out.
    - `customer_number` PriceBaselinePrinted, nullable: One printed field and the passage that prints it.
      - `value` string
      - `evidence` PriceBaselineEvidence, nullable: A verbatim passage from a workspace document backing one value.
        - `document_id` string, uuid, required
        - `quote` string, required: The passage exactly as the document prints it.
        - `verified` boolean, required: True only when the quote occurs in the document text and carries the value it backs.
        - `problem` string: Why verification failed; absent when verified.
        - `anchored` boolean: The extracted quote was a paraphrase and `quote` is the document line that prints the value.
        - `row` string: The whole table row a verified quote sits in, kept when its other cells print what the quote left out.
    - `site` PriceBaselinePrinted, nullable: One printed field and the passage that prints it.
      - `value` string
      - `evidence` PriceBaselineEvidence, nullable: A verbatim passage from a workspace document backing one value.
        - `document_id` string, uuid, required
        - `quote` string, required: The passage exactly as the document prints it.
        - `verified` boolean, required: True only when the quote occurs in the document text and carries the value it backs.
        - `problem` string: Why verification failed; absent when verified.
        - `anchored` boolean: The extracted quote was a paraphrase and `quote` is the document line that prints the value.
        - `row` string: The whole table row a verified quote sits in, kept when its other cells print what the quote left out.
    - `currency` string, nullable, required: ISO 4217 code the contract prices in, read from its price units.
    - `valid_from` string, nullable, required: ISO date the modelled price section applies from.
    - `valid_from_evidence` PriceBaselineEvidence, nullable, required: A verbatim passage from a workspace document backing one value.
      - `document_id` string, uuid, required
      - `quote` string, required: The passage exactly as the document prints it.
      - `verified` boolean, required: True only when the quote occurs in the document text and carries the value it backs.
      - `problem` string: Why verification failed; absent when verified.
      - `anchored` boolean: The extracted quote was a paraphrase and `quote` is the document line that prints the value.
      - `row` string: The whole table row a verified quote sits in, kept when its other cells print what the quote left out.
    - `components` PriceBaselineComponent[], required
      - `key` string: Short key such as `AP`, `GP`, `MP`, `CO2`.
      - `label` string
      - `unit` string: Unit the formula yields, such as `ct/kWh`, `EUR/kW/a`, `EUR/a`.
      - `basis` 'energy' | 'capacity' | 'fixed': `energy` per kWh consumed, `capacity` per kW per year, `fixed` per year.
      - `formula` string: Arithmetic over variable names: + - * / ^, parentheses, min, max, round, band.
      - `adjustment` 'monthly' | 'quarterly' | 'semiannual' | 'annual' | 'fixed'
      - `decimals` integer, nullable: Decimal places the contract rounds the price to, when it says.
      - `evidence` PriceBaselineEvidence, nullable: A verbatim passage from a workspace document backing one value.
        - `document_id` string, uuid, required
        - `quote` string, required: The passage exactly as the document prints it.
        - `verified` boolean, required: True only when the quote occurs in the document text and carries the value it backs.
        - `problem` string: Why verification failed; absent when verified.
        - `anchored` boolean: The extracted quote was a paraphrase and `quote` is the document line that prints the value.
        - `row` string: The whole table row a verified quote sits in, kept when its other cells print what the quote left out.
      - `quantity` string, nullable: Name of the quantity variable the price is billed on.
      - `valid_from` string, nullable: ISO date the price starts to apply, when the contract limits it.
      - `valid_to` string, nullable
      - `one_off` boolean, nullable: Paid once, on `valid_from`; not a recurring charge.
      - `credit` boolean, nullable: An amount the supplier pays or credits to the customer.
      - `condition` string, nullable: The event the charge is due on; null for a charge billed every period. A conditional charge is never expected on an invoice.
    - `variables` PriceBaselineVariable[], required
      - `name` string: ASCII identifier used in formulas.
      - `symbol` string: The symbol as the contract prints it.
      - `label` string
      - `kind` 'base' | 'weight' | 'constant' | 'index' | 'quantity': `base` a stated one-time value, `weight` a share inside a formula, `constant` any other stated number, `index` an external series resolved per period, `quantity` a contracted amount the bill multiplies.
      - `value` number, nullable: Stated value; null for index variables and for values the contract does not state.
      - `unit` string, nullable
      - `evidence` PriceBaselineEvidence, nullable: A verbatim passage from a workspace document backing one value.
        - `document_id` string, uuid, required
        - `quote` string, required: The passage exactly as the document prints it.
        - `verified` boolean, required: True only when the quote occurs in the document text and carries the value it backs.
        - `problem` string: Why verification failed; absent when verified.
        - `anchored` boolean: The extracted quote was a paraphrase and `quote` is the document line that prints the value.
        - `row` string: The whole table row a verified quote sits in, kept when its other cells print what the quote left out.
      - `index` PriceBaselineIndexBinding: The index series an index variable reads, and how the contract names its reference period.
        - `series` string: Catalog series key, or `manual:<name>` for values entered with evidence.
        - `description` string: How the contract names the index.
        - `reference` 'period_avg' | 'prev_period_avg' | 'prev_year_avg' | 'prev2_year_avg' | 'year_avg' | 'month_before' | 'custom': Which index values a price period uses; `custom` means the wording fits none of the others and the period values are entered by hand.
        - `reference_text` string, nullable: The contract wording of the reference period.
        - `base_year` integer, nullable: Base year the contract quotes the index on ("2015 = 100").
        - `base_period` object, nullable: Months the contract measured its base value in; the index is then linked at that period.
          - `from` string
          - `to` string
        - `base_variable` string, nullable
        - `mapped` object, nullable: Set when an alias rule replaced a hand-entry series with the synced one the wording names.
          - `from` string
          - `rule` string
          - `certain` boolean: False when a default filled an open detail; such a mapping is used like an assumption.
          - `why` string
    - `referenced_documents` string[], required: Amendments, annexes or price sheets the contract refers to that change prices.
    - `notes` string[], required
    - `contract_key_source` 'filename' | 'contract' | 'manual' | 'contracts' | 'null', nullable: Where the row's contract key came from.
    - `decisions` object: How a person chose to fill each open input, by input key.
  - `status` 'draft' | 'confirmed' | 'excluded': `draft` straight from extraction, `confirmed` once a person has checked it, `excluded` sets no price and is left out of the version chain.
  - `extracted_with` string, nullable: Model id the extraction used.
  - `valid_from` string, nullable: ISO date, mirrored from `model.valid_from`.
  - `contract_key` string, nullable: The contract number, normalised; every model with the same key is a version of one contract.
  - `superseded_by` string, uuid, nullable: The model that replaces this one from its own `valid_from`.
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: The request is invalid.
- `404`: The requested resource was not found.
- `422`: The request is well-formed but violates the declared task contract.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/price-baseline/models/:id/values/post.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
