# Update role **PATCH /api/roles/{id}** Update role details. This method performs a partial update. ## 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 role. ### Body: application/json (object) - **name** (string) The name of the role. It should be unique within the tenant. - **description** (string) - **isDefault** (boolean) ## Responses ### 200 The updated role. #### Body: application/json (object) - **tenantId** (string) - **id** (string) - **name** (string) - **description** (string) - **type** (string) - **isDefault** (boolean) ### 400 Bad Request ### 401 Unauthorized ### 403 Forbidden ### 404 Not Found ### 422 Unprocessable Content [Powered by Bump.sh](https://bump.sh)