---
descriptions:
  update_organization_role:
    name: The new name for the role.
    description: The new description for the role. Set to `null` to remove the description.
reference:
  curl:
    - key: update_organization_role
      id: update_organization_role
      url: /reference/roles/organization-role/update
      title: '/authorization/organizations/:id/roles/:slug'
      type: PATCH
      parameters:
        - key: name
          type: string
          optional: true
          description: (update_organization_role.name)
        - key: description
          type: string | null
          optional: true
          description: (update_organization_role.description)
      returns:
        - (organization_role)
  js:
    - key: updateOrganizationRole
      id: update_organization_role
      url: /reference/roles/organization-role/update
      title: authorization.updateOrganizationRole()
      parameters:
        - key: organizationId
          type: string
          description: The ID of the organization.
        - key: slug
          type: string
          description: The slug of the role to update.
        - key: options
          type: object
          unwrap: true
          properties:
            - key: name
              type: string
              optional: true
              description: (update_organization_role.name)
            - key: description
              type: string | null
              optional: true
              description: (update_organization_role.description)
      returns:
        - key: OrganizationRole
          description: (organization_role.self)
  python:
    - key: update_organization_role
      id: update_organization_role
      url: /reference/roles/organization-role/update
      title: authorization.update_organization_role()
      parameters:
        - key: organization_id
          type: str
          description: The ID of the organization.
        - key: slug
          type: str
          description: The slug of the role to update.
        - key: name
          type: str
          optional: true
          description: (update_organization_role.name)
        - key: description
          type: str | None
          optional: true
          description: (update_organization_role.description)
      returns:
        - key: OrganizationRole
          description: (organization_role.self)
originalPath: >-
  .tmp-workos-clone/packages/docs/content/reference/roles/organization-role/update.mdx
---

## Update an organization role

Update an existing custom organization role. Only the fields provided in the request body will be updated.

<CodeBlock referenceId="update_organization_role">
  <CodeBlockTab title="Request" file="update-organization-role-request" />
  <CodeBlockTab title="Response" file="update-organization-role-response" />
</CodeBlock>
