Platform
revokeSelfHostEnrollment
Revoke a self-host enrollment
Revokes an enrollment so its token can no longer authenticate a proxy. Connected proxies keep their last-known config until they reconnect.
Usage
const result = await api.platform.revokeSelfHostEnrollment({
pathParams: {
org_id: "org_abc123",
enrollment_id: "she_01h455vb4pex5vsknk084sn02q",
},
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| pathParams.org_id | string | Yes | Unique organization identifier. |
| pathParams.enrollment_id | string | Yes | Unique enrollment identifier. |
Response
Promise<void>: no content.
Example
import { PgBeamClient } from "pgbeam";
const client = new PgBeamClient({
token: "pbk_...",
baseUrl: "https://api.pgbeam.com",
});
const result = await client.api.platform.revokeSelfHostEnrollment({
pathParams: {
org_id: "org_abc123",
enrollment_id: "she_01h455vb4pex5vsknk084sn02q",
},
});Errors
| Status | Description |
|---|---|
| 401 | Missing or invalid authentication. |
| 403 | Operation not allowed by current plan limits. |
| 404 | Resource not found. |