Skip to main content
POST
Remove a direct-share acceptance from the user's 'Shared with Me' list
Recipient withdraws a grant they previously accepted. Actor-only — an org API key whose creator has moved is refused. Withdrawal is always allowed.

Authorizations

Authorization
string
header
required

Organisation API key from Settings → API / /api/keys/. The secret is shown once. Send Authorization: Bearer sk-abacus-…. One active key per organisation. Ingest (/api/v2/ingest/*) refuses API keys — that surface is Auth0-only with ingest:read / ingest:write scopes.

Path Parameters

id
integer
required

Response

Output projection for a single :class:DirectShareAcceptance row.

Used as a roster element inside :class:DirectShareLinkSerializer (owner-side roster on the link detail) AND as the response body of the recipient-side accept / remove endpoints (so the SPA can update its local cache from the response without a follow-up GET).

id
integer
required
read-only
accepted_by
object | null
required

Compact user projection for created_by / revoked_by / accepted_by.

Named with a _DirectShare prefix to avoid a drf-spectacular component-name collision with :class:deckmonkey.api_v2.library.serializers._ActorSerializer.

accepted_at
string<date-time>
required
read-only
removed_at
string<date-time> | null
required
read-only
is_active
boolean
required
read-only