---
title: "Update a draft agreement (or restore an archived one)"
method: PATCH
path: "/agreements/{id}"
tags: ["Agreements"]
---

# Update a draft agreement (or restore an archived one)

`PATCH /agreements/{id}`

## Request

- Base URL: `https://dataroom.corgi.com/api/v1`
- URL: `https://dataroom.corgi.com/api/v1/agreements/{id}`
- Auth: HTTP bearer

Edit a draft's title, personal message, expiry, or reminder cadence; pass `archived: false` to restore an archived agreement. Fails `409 immutable` once the agreement is sent (void it first). Scope: `envelopes:write`.

## Path parameters

- `id` string, required

## Request body

- object
  - `title` string
  - `message` string
  - `expiresAt` string, date-time: Empty string clears it
  - `reminderDays` integer
  - `archived` boolean: Pass false to restore an archived agreement

## Response `200`

Updated

## Other responses

- `404`: Not found
- `409`: Sent agreements are immutable

---

[API](https://skmtc.dev/corgi/apis/dataroom-api.md) - [All operations](https://skmtc.dev/corgi/apis/dataroom-api/llms.txt) - [OpenAPI document](https://skmtc.dev/corgi/apis/dataroom-api/revisions/73f75ef04a00?raw)
