Skip to main content
Extend an agreement term

Authorizations

Authorization
string
header
required

Personal API key. Send X-Organization-Id. The required cumulative level is listed in x-watchdog-permission.

Headers

X-Organization-Id
string

Required for personal API keys. Target one organization you have access to. Migrated keys may omit it to use their original organization. For Clerk sessions, it must match the active organization.

if-match
string
required

Required strong ETag from the individual resource GET. A missing, weak or * validator returns 428; a stale validator returns 412.

Required string length: 1 - 4096

Path Parameters

id
string<uuid>
required

Body

application/json
confirm_occurrence_override
boolean
default:false

Extend although no renewals remain on record (occurrences_remaining is null or 0).

Response

Current resource.

id
string<uuid>
required
title
string | null
required
status
enum<string>
required
Available options:
draft,
active,
archived
effective_date
string | null
required
Pattern: ^\d{4}-\d{2}-\d{2}$
expiration_date
string | null
required
Pattern: ^\d{4}-\d{2}-\d{2}$
suppliers
object[]
required

Complete supplier selection. An empty array matches no invoices.

Example:
recipients
object[]
required

Complete recipient selection. An empty array means any recipient.

Example:
tags
object[]
required

Complete assigned tags, ordered by ID. Empty means no tags.

Example:
readiness
object
required

Current eligibility for compliance checks. reasons contains every blocker and is empty exactly when ready is true. This is not a guarantee that a check will succeed or be admitted.

renewal_action
object
required

Contractual action from the stored renewal terms, independent of agreement status. Reads never roll terms forward. A null deadline means no dated action is known; automatic_notice retains its notice period.

version
integer
required
Required range: x >= 0
created_at
string<date-time>
required
updated_at
string<date-time>
required
alert_summary
object
required

All retained alerts of this agreement, as GET /v1/alerts/metrics?agreement_ids={id} reports them. Team filters select agreements; they do not narrow this summary.

relationships
object
required
applicability
object | null
required

Additional invoice-matching conditions over reference and delivery fields. Included in agreement detail; omitted from list summaries. Null means no additional conditions. Existing values retain whitespace and may exceed current write limits; unsupported stored conditions return 409.

renewal
object | null
required
instructions
string | null
required

Additional context used when interpreting this agreement during compliance checks.

alert_settings
object
required

Agreement-specific alert preferences. Replaces the complete object; omitted flags default to false. Saving preferences does not run checks.

matching_settings
object
required

Stored smart-matching configuration. Replaces the complete object; omitted values default to false and null. Saving does not run matching.