Update saved prompt metadata or access
PATCH
/v1/prompts/{promptId}An owner change in metadata creates a pending resource invitation and must be submitted separately from other edits. Ownership remains unchanged until recipient acceptance.
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.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| promptId | path | string | Yes | — |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | No | Human-readable name. |
| description | string | No | Human-readable description. |
| metadata | object | No | Free-form metadata object. |
| permissionSet | object | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Prompt updated or ownership offeredapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | object | No | — |
| invitation | object | No | — |
| 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. |
400Invalid recipient or combined ownership and configuration edits
None.
403Current owner authorization required
None.
409Another ownership offer is pending
None.
503Resource invitations require PostgreSQL
None.
Update saved prompt metadata or access
Loading...
Response 200
Loading...