Remove milestones
Code Mode: praxis.ticket.milestones.delete
HTTP: DELETE /ticket/v1/milestones/{number}
Remove milestones within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Writes complete synchronously; read the returned resource to observe the result. Service authorization applies to the verified human subject.
签名
praxis.ticket.milestones.delete(args:{path:{/** Repository-local number returned by create or list; distinct from the object's id. */ number:number};query?:{/** Opaque repository id. */ repository?:string}}):Promise<unknown>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| number | path | number | 是 | Milestone number shown by create and list; not the object id. |
| repository | query | string | 否 | Repository id from GET /ticket/v1/repositories; omit for the default tickets container. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 204 | The operation succeeded; no response body. | |
| 400 | Invalid native input or unsupported GitHub API version; correct the request before retrying. | |
| 401 | Credentials are absent or invalid; supply a valid API key or signed browser session. | |
| 403 | Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers. | |
| 404 | Resource or repository is absent from this organization; a different owner has the identical missing-resource response. | |
| 410 | Ticket is gone; refresh the repository’s ticket list. | |
| 422 | Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships. | |
| 429 | Native rate limit; wait for retry-after before retrying. |