Update mTLS Config
Enable, switch mode, or disable mutual-TLS verification on an endpoint. Replaces the trusted-CA list wholesale on each call — pass the full list each time, the platform doesn't merge.
Enabling mTLS (mode != "disabled") is gated behind the mtls entitlement on your plan; disabling is unrestricted so a downgraded user can clear it themselves. optional and required modes need at least one CA in ca_ids — without one, the tunnel-server has nothing to validate against. Maximum 32 CAs per endpoint.
The handler validates that every CA ID in the list belongs to the calling user before persisting. The mode change + CA list replacement happen in a single transaction; partial state is impossible.
Path parameters
Request body
disabled | optional | required.mode: "disabled"; required (length ≥ 1) for optional and required. Max length 32.Response (200 OK)
Returns the updated config — same shape as GET /v1/endpoints/{id}/mtls.
Errors
mode, empty ca_ids with non-disabled mode, > 32 CAs, or one of the CA IDs doesn't belong to you.mtls entitlement (only when enabling — disabling is always allowed).