# Update NDA template

URL: /en/docs/api/v1/nda-templates/id/patch
Last Updated: 2026-07-30T21:15:30.302Z

## Description
No description available.

## Available Actions
- Execute PATCH request
- View request parameters
- View response schema
- Get code examples
- Navigate to related topics
- View step-by-step instructions
- Get best practices

## Content
### PATCH /api/v1/nda-templates/{id}

**Update NDA template**

Update an existing NDA template

**Authentication:** Bearer token (`Authorization: Bearer <token>`)

**Path parameters:**

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string (uuid) | Yes | Template ID |

**Request body** (`application/json`) - required:

- `title` (string): Template title
- `type` (enum: standard | bilateral | unilateral | multilateral): Agreement type
- `content_markdown` (string): NDA content in markdown format
- `language` (enum: en-US | de-DE | fr-FR): Template language
- `validity_in_months` (integer): Validity period of the NDA in months
- `status` (enum: draft | published | archived): Template status (only status-only updates allowed for published templates)
- `createVersion` (boolean): Create a new version after update (internal use)
- `autoSave` (boolean): Auto-save flag (internal use)

Example (Update template content):

```json
{
  "title": "Updated Bilateral NDA",
  "content_markdown": "# Updated Non-Disclosure Agreement\n\nThis updated agreement protects both parties...",
  "validity_in_months": 12
}
```

Example (Publish draft template):

```json
{
  "status": "published"
}
```

Example (Change template language):

```json
{
  "language": "de-DE",
  "content_markdown": "# Aktualisierte Geheimhaltungsvereinbarung\n\nDiese Vereinbarung..."
}
```

**Responses:**

- `200` - Template updated successfully
  - `template` (NdaTemplate (object))
    - `id` (string (uuid)): Unique identifier for the template
    - `tenant` (string (uuid)): Tenant ID
    - `title` (string): Template title
    - `type` (enum: standard | bilateral | unilateral | multilateral): Agreement type
    - `content_markdown` (string): NDA content in markdown format
    - `status` (enum: draft | published | archived): Template status
    - `language` (enum: en-US | de-DE | fr-FR): Template language
    - `validity_in_months` (integer): Validity period in months
    - `hasActiveVersion` (boolean): Whether this template has an active version
    - `date_created` (string (date-time)): Creation timestamp
    - `date_updated` (string (date-time)): Last update timestamp
    - `user_created` (string): User who created the template
    - `user_updated` (string): User who last updated the template
- `400` - Bad request
  - `error` (string): Error message
- `401` - Unauthorized
  - `error` (string): Error message
- `404` - Not found
  - `error` (string): Error message
- `500` - Internal server error
  - `error` (string): Error message

**Code samples:**

Update NDA Template:

```cURL
curl -X PATCH https://app.orbiqhq.com/api/v1/nda-templates/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer $TRUST_CENTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated Bilateral NDA",
    "validity_in_months": 12
  }'

```

