# Replace resource scopes for organization role **PUT /api/organization-roles/{id}/resource-scopes** Replace all resource scopes that are assigned to the specified organization role with the given resource scopes. This effectively removes all existing organization scope assignments and replaces them with the new ones. ## 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 role. ## Body parameters Content-type: application/json - **scopeIds** (array[string]) An array of resource scope IDs to replace existing scopes. ## Responses ### 204: Resource scopes were replaced successfully. ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 422: At least one of the IDs provided is invalid. For example, the resource scope ID does not exist. [Powered by Bump.sh](https://bump.sh)