---
search:
  tags:
    - AppShares
    - PATCH
seo:
  description: >-
    User-gated (chrm_user_* or session); requires app:share. Updates… Reference
    for the PATCH /api/v1/apps/{appId}/shares/{shareId} endpoint in the Charming
    API.
sidebar:
  label: Change an existing share’s role
  badge: PATCH
title: Change an existing share’s role
type: openapi-operation
---
User-gated (`chrm_user_*` or session); requires `app:share`. Updates the grant or email invitation addressed by its opaque share id.

`PATCH /api/v1/apps/{appId}/shares/{shareId}`

**Request body** (`application/json`, required)

- `role` (string, required)

Request body example:

```json
{
  "role": "collaborator"
}
```

**Responses**

- `200` — Role changed.
- `400` — Invalid app id, share id, or body.
- `401` — Sign-in required.
- `403` — The caller cannot manage shares.
- `404` — App or share not found.
- `409` — The app has no owner.

Response example, 200:

```json
{
  "ok": true,
  "role": "collaborator"
}
```

Found a bug or need a feature? [Tell us](/docs/capabilities/feedback) with `submit_feedback` or `POST /app/{id}/feedback`. Your feedback shapes what we build next.
