---
title: "Add or update the role of an Org Member"
method: PATCH
path: "/orgs/{name}/members/{username}/{role}"
tags: ["Orgs"]
deprecated: true
---

# Add or update the role of an Org Member

`PATCH /orgs/{name}/members/{username}/{role}`

> **Deprecated.**

Upsert a member role to the org (must have org `owner` role)

## Path parameters

- `name` string, required
- `username` string, required
- `role` 'owner' | 'member', required — An enumeration.

## Response `202`

Accepted

- UpdateAccepted — Accepted request response for existing resource
  - `status` string

## Other responses

- `400` — Invalid request
- `403` — Access forbidden
- `404` — Not found
- `422` — Validation Error
- `500` — Server error

---

[API](https://skmtc.net/pollination/apis/pollination-server.md) · [All operations](https://skmtc.net/pollination/apis/pollination-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pollination/pollination-server/revisions/c1f3c6d96b31/schema)
