> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.credal.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.credal.com/_mcp/server.

# updateOrganizationMembership

GraphQL MUTATION

Updates a member of the caller's organization. Setting the role assigns it
directly to the member, and unsetting it removes the member's direct role.
Roles that come from the member's groups are unaffected. Requires the
ORGANIZATION_ADMIN role action.

Reference: https://docs.credal.com/api-reference/mutations/update-organization-membership

## GraphQL Schema

```graphql
mutation ExampleMutation($request: UpdateOrganizationMembershipRequest!) {
  updateOrganizationMembership(request: $request)
}
```

## Variables

```json
{
  "request": {
    "userId": "example",
    "patch": {
      "role": {
        "set": "example",
        "unset": "UNSET"
      }
    }
  }
}
```