---
title: "Update an SNI"
method: PATCH
path: "/snis/{SNIIdOrName}"
tags: ["SNIs"]
---

# Update an SNI

`PATCH /snis/{SNIIdOrName}`

Update an SNI

## Request body

- SNI
  - `created_at` integer — Unix epoch when the resource was created.
  - `id` string
  - `name` string — The SNI name to associate with the given certificate.
  - `tags` string[] — An optional set of strings associated with the SNIs for grouping and filtering.
  - `updated_at` integer — Unix epoch when the resource was last updated.
  - `certificate` object — The id (a UUID) of the certificate with which to associate the SNI hostname. The Certificate must have a valid private key associated with it to be used by the SNI object.
    - `id` string

## Response `200`

Successfully updated SNI

- SNI
  - `created_at` integer — Unix epoch when the resource was created.
  - `id` string
  - `name` string — The SNI name to associate with the given certificate.
  - `tags` string[] — An optional set of strings associated with the SNIs for grouping and filtering.
  - `updated_at` integer — Unix epoch when the resource was last updated.
  - `certificate` object — The id (a UUID) of the certificate with which to associate the SNI hostname. The Certificate must have a valid private key associated with it to be used by the SNI object.
    - `id` string

## Other responses

- `401` — Unauthorized
- `404` — Resource does not exist

## Changes

> 3 revisions in range; 1 not diffed.

- **2024-09-11** `5bd52189d290` — 1 warning
  - deleted the `path` request parameter `SNIIdOrName`

[Change history](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/changes/snis/:SNIIdOrName/patch.md)

---

[API](https://skmtc.dev/kong/apis/kong-enterprise-admin-api.md) · [All operations](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kong/kong-enterprise-admin-api/revisions/5bd52189d290/schema)
