跳转到内容
EN

Delete a test plan

Code Mode: praxis.devops.testPlans.delete

HTTP: DELETE /devops/v1/test-plans/{id}

Delete a plan so it schedules nothing further. The plan stops firing immediately; runs it already produced keep their own record and are not deleted with it. To stop a plan temporarily and keep it for later, pause it instead — deleting cannot be undone and the plan’s key becomes free for another plan to take.

签名

praxis.devops.testPlans.delete(args:{path:{/** e.g. "tpl_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string}}):Promise<{/** True once the plan no longer schedules runs; it is the only outcome of this call. e.g. true */ deleted:boolean}>;

参数

名称位置类型必填说明
idpathstring是The plan identifier returned by a plan list or create answer.

响应

状态码内容类型说明
200application/jsonThe deletion result; deleted true means the plan no longer schedules runs.
401application/jsonThe API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
403application/jsonThe credential carries no organization, or that organization cannot reach this project; use a key belonging to the project’s organization. No cross-organization read is possible.
404application/jsonPLAN_NOT_FOUND means no plan with that id exists in this organization; list the project’s plans and use an id from that answer.
500application/jsonINTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.