v22

latestOpenAPI 3.1.0raw.githubusercontent.com2025-10-07253798.6 KB
agents
agents
agents

Remove Codegen From Pr

Remove Codegen from a PR.

This endpoint performs the same action as banning all checks but with more user-friendly naming. It:

  1. Flags the PR to prevent future CI/CD check suite events from being processed
  2. Stops all current agents for that PR
post/v1/organizations/{org_id}/agent/run/remove-from-pr

Path parameters

org_idinteger required

Headers

{"stackTrail":"paths:/v1/organizations/{org_id}/agent/run/remove-from-pr:post:parameters:1:schema","oasType":"schema","type":"unknown","title":"Authorization"}

Request body

agent_run_idinteger required
before_card_order_idstring nullable

Kanban order key of the card that should come before this agent run in the CANCELLED column

after_card_order_idstring nullable

Kanban order key of the card that should come after this agent run in the CANCELLED column

Response

Successful Response

{"stackTrail":"paths:/v1/organizations/{org_id}/agent/run/remove-from-pr:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}