# Update NDA template version

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

## 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}/versions/{versionId}

**Update NDA template version**

Update a specific version of an NDA template. Currently only supports publishing draft versions.

Publishing a draft version:
- Changes the version status from "draft" to "published"
- Makes the version immutable (read-only)
- The version can then be activated to become the active version

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

**Path parameters:**

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

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

- `status` (enum: published, required): Version status (currently only "published" is supported)

**Responses:**

- `200` - Version updated successfully
  - `success` (boolean)
  - `message` (string)
- `400` - Bad request
  - `error` (string)

  Example (Version is not a draft):
  
  ```json
  {
  "error": "Only draft versions can be published"
}
  ```

  Example (Missing parameters):
  
  ```json
  {
  "error": "Template ID and Version ID are required"
}
  ```
- `401` - Unauthorized
  - `error` (string): Error message
- `404` - Not found
  - `error` (string)
- `500` - Internal server error
  - `error` (string): Error message

**Code samples:**

```cURL
curl -X PATCH https://app.orbiqhq.com/api/v1/nda-templates/550e8400-e29b-41d4-a716-446655440000/version/0d5340f6-8095-47e7-946b-5fad86710e96 \
  -H "Authorization: Bearer $TRUST_CENTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "published"
  }'

```

