> For the complete documentation index, see [llms.txt](https://openapi.logto.io/llms.txt)

# Replace organization user members

> PUT /api/organizations/{id}/users
> 
> Replace all user members for the specified organization with the given users. This effectively removing all existing user memberships in the organization and adding the new users as members.



## Servers
- Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.)


## Authentication methods
- O auth2


## Parameters

### Path parameters

- **id** (string)
  The unique identifier of the organization.



### Body: application/json (object)

- **userIds** (array[string])
  An array of user IDs to replace existing users.



## Responses
### 204
Successfully replaced all users for the organization.

### 400
Bad Request

### 401
Unauthorized

### 403
Forbidden

### 422
At least one of the IDs provided is not valid. For example, the organization ID or user ID does not exist.


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