---
title: "Change Organization Member Role"
method: PATCH
path: "/api/v2/orgs/{org}/members/{member}/role"
---

# Change Organization Member Role

`PATCH /api/v2/orgs/{org}/members/{member}/role`

Change the role of a member in an organization.

This endpoint changes the role of a user in an organization in Gitea.
Only owners and admins can change the role of members in the organization.

## Path parameters

- `org` string, required
- `member` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `modaic_session` string, nullable

## Request body

- ChangeOrganizationMemberRoleRequest
  - `permission` 'read' | 'write' | 'admin' | 'owner', required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/modaic-ai/apis/modaic-api.md) · [All operations](https://skmtc.dev/modaic-ai/apis/modaic-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/modaic-ai/modaic-api/revisions/43a90513ac59/schema)
