---
title: "document_contract_amendment_updated"
method: POST
path: "document_contract_amendment_updated"
tags: ["Webhook Payloads"]
---

# document_contract_amendment_updated

`POST document_contract_amendment_updated` (webhook)

A user linked the document to a contract as its amendment, renewal or termination, changed the terms the link carries, or unlinked it (`parent_document_id` null, see the `unlinked` example). Sent for every change to the link (a retry that changes nothing is not sent), a signed instrument included: a signed instrument blocked from applying can still have its recorded delta corrected, and this is the record of who did. **Subject:** User · **Object:** Document (the instrument) · **Payload:** `user_name`, `parent_document_id`, `relation_type`, `terms` (the delta as it now stands; `null` after an unlink), `changed` (which of `parent_document_id`, `relation_type` and `terms` moved: all three on a first link and on an unlink, `["terms"]` when only the delta changed).

## Headers

- `User-Agent` string, required
- `webhook-id` string, required
- `webhook-timestamp` string, required
- `webhook-signature` string

## Payload

- WebhookEvent: Body of every webhook delivery. Timestamps in the body (`created_at`, and the `*_at` fields of `subject`/`object`) are Unix timestamps in seconds, not the ISO strings the REST responses use. `subject` and `object` are serialized from their current state when the delivery is sent.
  - `id` integer, required: ID of the activity that produced the event.
  - `event` string, required: Event type. See **List webhook event types**.
  - `message` string, nullable: Reserved; currently always `null`.
  - `payload` object, nullable: Event-specific parameters; keys vary per event.
  - `origin` object, nullable: Where the action came from, when it was triggered by a request.
    - `ip` string
    - `user-agent` string
  - `created_at` integer, required: When the event was recorded (Unix timestamp, seconds).
  - `subject` object, required: Who performed the action: a `User`, `Signer` or `Account`, plus a `type` property naming it.
  - `object` object, required: What the action was performed on: a `Document`, `Signer` or `Template` with its relations expanded, plus a `type` property naming it.
  - `account_id` string, required: ID of the account that owns the event.

## Acknowledgement `2XX`

Any `2xx` response acknowledges the delivery. Any other status, a connection error or a timeout counts as a failed attempt.

---

[API](https://skmtc.dev/assinafy/apis/assinafy-api-reference.md) - [All operations](https://skmtc.dev/assinafy/apis/assinafy-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/assinafy/apis/assinafy-api-reference/revisions/3672991376b6?raw)
