# Replace organization JIT default roles **PUT /api/organizations/{id}/jit/roles** Replace all organization roles that will be assigned to users during just-in-time provisioning with the given data. ## 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 parameters Content-type: application/json - **organizationRoleIds** (array[string]) An array of organization role IDs to replace existing organization roles. ## Responses ### 204: The organization roles were replaced successfully. ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 422: The organization roles could not be replaced. Some of the organization roles may not exist. [Powered by Bump.sh](https://bump.sh)