/v1/oauth/workspaces/{workspace_id}/connections/{grant_id}/restoreAuthLift a workspace revocation so the member may reconnect
A workspace revocation is durable: the member re-running the connect flow does not undo it, so an administrator has to. This clears the block only — every token minted under the old grant stays revoked and the member still has to approve a fresh consent screen. Requires `workspace.connection.revoke`.
Path parameters
workspace_id*string · uuidId of the workspace.
grant_id*string · uuidId of the grant.
Response · 204
Revocation lifted.
Example
Request
POST https://api.platform-auth.productcraft.co/v1/oauth/workspaces/{workspace_id}/connections/{grant_id}/restore
Authorization: Bearer YOUR_TOKENimport { PlatformAuth } from "@productcraft/platform-auth";
// Reads PRODUCTCRAFT_API_KEY from the environment; administration
// calls take a person's session: { auth: { type: "bearer", token } }
const platform = new PlatformAuth();
await platform.oauth.workspaces.connections.restore("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");platform.oauth.workspaces.connections.restore(workspaceId, grantId, options?): void