---
title: "Decline or leave a share"
method: POST
path: "/api/v1/apps/{appId}/shares/decline"
tags: ["AppShares"]
---

# Decline or leave a share

`POST /api/v1/apps/{appId}/shares/decline`

## Request

- Base URL: `https://charm.ing`
- URL: `https://charm.ing/api/v1/apps/{appId}/shares/decline`
- Auth: HTTP bearer

User-gated (`chrm_user_*` or session). Declines the CALLER’s pending invite or leaves an accepted share; idempotent (`removed: false` when there was nothing).

## Path parameters

- `appId` string, uuid, required

## Response `200`

Declined / left (or nothing to remove).

- ShareRemovedResponse
  - `ok` true, required
  - `removed` boolean, required

## Other responses

- `400`: Invalid app id.
- `401`: Sign-in required.

---

[API](https://skmtc.dev/charm/apis/charming-api.md) · [All operations](https://skmtc.dev/charm/apis/charming-api/llms.txt) · [OpenAPI document](https://skmtc.dev/charm/apis/charming-api/revisions/a9d06c419b3a?raw)
