Remove an admin pin (admin)
Removes the agent's admin pin for this integration. It deletes the member pins it masks, by the rule stated on upsertIntegrationPin; the audit records each one (memberPinsCleared). The removal's transaction disables (disabled_reason: connection_set_unnamed) every enabled schedule it could name a set for — of its space; for a pin, on its agent; for a member pin, of that member — whose fired version uses this integration (declared, not inert) and whose set nothing names afterwards: no connection_overrides key, admin pin, pin of its actor or org default, however many connections its actor holds. Their jobs are removed once it commits. A schedule that relied on a deleted member pin is disabled with them. Removing a floor (an admin pin, an enforced default, or that enforcement) also disables (disabled_reason: connection_set_unnamed), in the same transaction, every enabled schedule it governed — for a pin, on its agent; for an enforced default, on every agent of the space no admin pin governs for this integration — that nothing governs afterwards and whose connection_overrides set for this integration strictly narrows the removed floor — names only connections of it, and fewer than it holds ([] included; ids compared case-insensitively, repeats counted once): under the floor it added nothing, ungoverned it would bind fewer connections, or none. A set naming the whole floor (in any order) binds the same either way; it, a set naming another connection, and a schedule with no key for this integration keep their meaning and are left alone.
/api/integrations/{packageId}/pins/{agentPackageId}Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Path Parameters
Integration package id (e.g. @official/gmail).
^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$Agent package id (e.g. @acme/my-agent).
^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$Header Parameters
Organization ID. Required for cookie auth. Not needed for API key auth (org resolved from key).
uuidSpace ID. Required for space-scoped routes (agents, runs, schedules, and space-scoped module routes). Not needed for API key auth (space resolved from key).
curl -X DELETE "https://your-instance/api/integrations/string/pins/string"{
"schedules_disabled_count": 0
}{
"type": "https://docs.appstrate.dev/errors/forbidden",
"title": "Forbidden",
"status": 403,
"detail": "Insufficient permissions",
"code": "forbidden",
"request_id": "req_abc123"
}