Decline a pending resource or ownership offer
/v1/resource-invitations/{invitationId}/declineRepeated identical decisions are idempotent. Acceptance rechecks membership, source ownership, sender authority and the current share in one transaction. An accepted ownership transfer cannot be revoked. Reading or marking notifications does not constitute acceptance. Decisions require projects:write for team shares, or the resource owner endpoint write permission for ownership offers.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| invitationId | path | string | Yes | — |
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| X-Computer-Agents-Organization | header | string | Yes | Organization that issued this recipient-bound offer |
Body schema
This endpoint does not require a request body.
What the API returns
Each response code below includes the documented payload shape for the ACP API.
| Field | Type | Required | Description |
|---|---|---|---|
| invitation | object | Yes | — |
| invitation.id | string | Yes | Unique identifier. |
| invitation.organizationId | string | Yes | — |
| invitation.kind | share | ownership | Yes | — |
| invitation.resourceType | string | Yes | — |
| invitation.resourceId | string | Yes | — |
| invitation.resourceName | string | Yes | — |
| invitation.recipientUserId | string | Yes | — |
| invitation.invitedByUserId | string | Yes | — |
| invitation.accessLevel | use | edit | manage | Yes | — |
| invitation.status | pending | accepted | declined | revoked | expired | Yes | Current lifecycle status. |
| invitation.expiresAt | string | Yes | — |
| invitation.decidedAt | string | Yes | — |
| invitation.createdAt | string | Yes | ISO 8601 timestamp. |
| invitation.updatedAt | string | Yes | ISO 8601 timestamp. |