> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/api/doc/admin/v2/llms.txt)

# UpdateClusterFenceSettings

> POST /redpanda.core.admin.v2.ClusterFenceService/UpdateClusterFenceSettings
> 
> Saves the settings that `Fence` uses. They always exist and start at
> their defaults, so you can save them before the first `Fence`. If the
> cluster is fencing or fenced, a change puts it in
> `CLUSTER_FENCE_STATE_FENCING` until every broker has the new settings.
> Returns the fence after the change.



## Servers
- http://localhost:9644: http://localhost:9644



## Parameters
### Headers

- **Connect-Protocol-Version** (number)
  Define the version of the Connect protocol

- **Connect-Timeout-Ms** (number)
  Define the timeout, in ms




### Body: application/json (object)

- **expectedRevision** (integer(int64) | string | null)
  If set, the request fails unless the fence is still at this revision.
   Use the `revision` from `GetClusterFenceStatus` or an earlier response.
   Set it to fail if the fence changed since you read it.

- **settings** (object)
  The values to save. Only the fields that `update_mask` names are read,
   or every field when `update_mask` is empty.

- **updateMask** (string)
  The settings to change. Settings it doesn't name keep their saved values.
   Naming `read_policy` replaces the whole read policy, and naming
   `read_policy.exempt_principals` adds names to the list. If empty, every
   setting is replaced.



## Responses
### 200
Success

#### Body: application/json (object)
- **fence** (object)
  The fence on the controller leader right after the update applied. It
   can already include a later change from another caller.


### default
Error

#### Body: application/json (object)
- **code** (string)
  The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

- **details** (array[object])
  A list of messages that carry the error details. There is no limit on the number of messages.

- **message** (string)
  A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.



[Powered by Bump.sh](https://bump.sh)
