Change Organization 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.

patch/api/v2/orgs/{org}/members/{member}/role

Path parameters

orgstring required
memberstring required

Headers

authorizationstring nullable

Cookies

modaic_sessionstring nullable

Request body

permission'read' | 'write' | 'admin' | 'owner' required

Response

Successful Response

{"stackTrail":"paths:/api/v2/orgs/{org}/members/{member}/role:patch:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.