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

# Update role membership

> POST /v1/security/roles/{role}/members



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



## Parameters

### Path parameters

- **role** (string)


### Query parameters

- **create** (boolean)
  Creates a role with name {role} if not found


### Body: application/json (object)

- **add** (array[object])

- **remove** (array[object])



## Responses
### 200
OK

#### Body: application/json (object)
- **added** (array[object])

- **created** (boolean)

- **removed** (array[object])

- **role** (string)


### 400
Bad Request

#### Body: application/json (object)
- **code** (integer)

- **message** (string)


### 404
Not found

#### Body: application/json (object)
- **code** (integer)

- **message** (string)



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