# Updates role mappings **PUT /organizations/{organization_id}/role_mappings** Updates the role assignments applicable when logging via SSO. Currently unavailable in self-hosted ECE. ## Servers - https://api.elastic-cloud.com/api/v1: https://api.elastic-cloud.com/api/v1 () ## Parameters ### Path parameters - **organization_id** (string) Identifier for the Organization ### Body: application/json (object) The role mappings to update - **mappings** (array[object]) The rules for mapping role assignments in the organization ## Responses ### 200 An empty response #### Body: application/json (object) object ### 400 Validation error. (code: `org.role_mapping_rule.syntax_error`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request ### 404 Organization not found. (code: `organization.not_found`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request [Powered by Bump.sh](https://bump.sh)