> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nedzo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update template

> Update a template's name, description, or visibility setting via the Nedzo REST API. Only the fields you provide in the request body are changed.

Update template metadata. Only provided fields will be updated. At least one field must be provided.

## Body Parameters

<ParamField body="name" type="string" optional>
  Template name (1-255 characters).
</ParamField>

<ParamField body="description" type="string | null" optional>
  Template description. Set to `null` to clear.
</ParamField>

<ParamField body="visibility" type="string" optional>
  Template visibility. One of `public` or `private`. Public templates can be previewed without authentication and imported by any account.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH "https://api.nedzo.ai/v1/templates/123e4567-e89b-12d3-a456-426614174000" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "Updated Template Name",
        "description": "Updated description",
        "visibility": "public"
      }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Updated Template Name",
    "description": "Updated description",
    "templateType": "agent",
    "visibility": "public",
    "schemaVersion": "1.0.0",
    "snapshotSizeBytes": 15240,
    "createdAt": "2026-01-15T10:30:00Z",
    "updatedAt": "2026-01-16T08:00:00Z"
  }
  ```
</ResponseExample>
