---
title: "Creates or Updates MeshTLS entity"
method: PUT
path: "/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshtlses/{name}"
tags: ["MeshTLS"]
---

# Creates or Updates MeshTLS entity

`PUT /v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshtlses/{name}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshtlses/{name}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `cpId` string, uuid, required
- `mesh` string, required
- `name` string, required

## Request body

- MeshTLSItem: MeshTLS configures TLS and mutual TLS (mTLS) settings for secure communication between services in the mesh. It allows you to enforce encryption, configure TLS versions and cipher suites, and control whether mTLS is required (strict mode) or optional (permissive mode) for inbound traffic.
  - `type` 'MeshTLS', required: the type of the resource
  - `mesh` string: Mesh is the name of the Kuma mesh this resource belongs to. It may be omitted for cluster-scoped resources.
  - `kri` string: A unique identifier for this resource instance used by internal tooling and integrations. Typically derived from resource attributes and may be used for cross-references or indexing
  - `name` string, required: Name of the Kuma resource
  - `labels` object: The labels to help identity resources
  - `spec` object, required: Spec is the specification of the Kuma MeshTLS resource.
    - `rules` object[]: Rules defines inbound tls configurations. Currently limited to selecting all inbound traffic, as L7 matching is not yet implemented.
      - `default` object: Default contains configuration of the inbound tls
        - `mode` 'Permissive' | 'Strict': Mode defines the behavior of inbound listeners with regard to traffic encryption.
        - `tlsCiphers` string[]: TlsCiphers section for providing ciphers specification.
        - `tlsVersion` object: Version section for providing version specification.
          - `max` 'TLSAuto' | 'TLS10' | 'TLS11' | 'TLS12' | 'TLS13': Max defines maximum supported version. One of `TLSAuto`, `TLS10`, `TLS11`, `TLS12`, `TLS13`.
          - `min` 'TLSAuto' | 'TLS10' | 'TLS11' | 'TLS12' | 'TLS13': Min defines minimum supported version. One of `TLSAuto`, `TLS10`, `TLS11`, `TLS12`, `TLS13`.
    - `targetRef` object: TargetRef is a reference to the resource the policy takes an effect on. The resource could be either a real store object or virtual resource defined in-place.
      - `kind` 'Mesh' | 'Dataplane', required: Kind of the referenced resource
      - `labels` object: Labels are used to select referenced real resources and to carry legacy service identity when a common TargetRef must still target old service-tag based paths.
      - `sectionName` string: SectionName is used to target specific section of resource. For example, you can target port from MeshService.ports[] by its name. Only traffic to this port will be affected.
  - `creationTime` string, date-time: Time at which the resource was created
  - `modificationTime` string, date-time: Time at which the resource was updated

## Response `200`

Successful response

- object
  - `warnings` string[]: warnings is a list of warning messages to return to the requesting Kuma API clients. Warning messages describe a problem the client making the API request should correct or be aware of.

## Other responses

- `201`: Successful response

## Changes

- **2026-12-03** `9c8d300657bd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-beta/changes/v3/mesh/control-planes/:cpId/meshes/:mesh/meshtlses/:name/put.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-beta.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-beta/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-beta/revisions/9c8d300657bd?raw)
