Disconnect the CI
const url = 'https://beta-api.plune.ai/v1/projects/example/integrations/ci';const options = {method: 'DELETE', headers: {cookie: 'plune_session=<plune_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://beta-api.plune.ai/v1/projects/example/integrations/ci \ --cookie plune_session=<plune_session>Owner only. Forgets the connection and its token (revoke the token on GitHub too). Launches in CI stop: plans and runs give the command to copy instead. Recorded in the audit feed of the project as a ci_integration entry. Session cookie only.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”An id from GET /v1/projects
Responses
Section titled “ Responses ”Disconnected
No / invalid session — a CLI token is refused here
You are in the project, but not as its owner
object
Example
{ "error": "project owner only"}No such project among yours, or no CI is connected
object
Examples
No such project among yours
{ "error": "project 'u-shop::default' not found"}Nothing to disconnect
{ "error": "no CI is connected"}Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over
The server has no key to keep tokens under
object
Example
{ "error": "integrations are not configured on this server — contact your operator"}