Skip to content
中文

Update milestones

Code Mode: praxis.ticket.milestones.update

HTTP: PATCH /ticket/v1/milestones/{number}

Update 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.

Signature

praxis.ticket.milestones.update(args:{path:{/** Repository-local number returned by create or list; distinct from the object's id. */ number:number};query?:{/** Opaque repository id. */ repository?:string};body:{/** Short title, at most 256 Unicode characters. */ title?:string;/** Milestone description. */ description?:string;/** Due date, or null if unset. e.g. "2026-12-01T00:00:00Z" */ due_on?:string|null;/** open (console: 开放) is actionable; closed (console: 已关闭) is resolved or declined; to a person say the console word, not the stored value. e.g. "open" */ state?:"open"|"closed"}}):Promise<{/** Opaque identifier returned by this resource's create or list operation. */ id:string;/** Opaque identifier returned by this resource's create or list operation. */ repository:string;/** Repository-local number returned by create or list; distinct from the object's id. */ number:number;/** Short title, at most 256 Unicode characters. */ title:string;/** Milestone description. */ description:string;/** open (console: 开放) is actionable; closed (console: 已关闭) is resolved or declined; to a person say the console word, not the stored value. e.g. "open" */ state:"open"|"closed";/** Due date, or null if unset. e.g. "2026-12-01T00:00:00Z" */ due_on:string|null;/** Open tickets assigned to this milestone. */ open_tickets:number;/** Closed tickets assigned to this milestone. */ closed_tickets:number;/** Opaque human:<user_id> or agent:<individual_id> subject. pattern: ^(human|agent):.+$ e.g. "human:usr_example" */ creator:string;/** Creation timestamp. e.g. "2026-12-01T00:00:00Z" */ create_time:string;/** Last edit timestamp. e.g. "2026-12-01T00:00:00Z" */ update_time:string;/** Closing timestamp, or null while open. e.g. "2026-12-01T00:00:00Z" */ close_time:string|null}>;

Parameters

NameInTypeRequiredDescription
numberpathnumberyesMilestone number shown by create and list; not the object id.
repositoryquerystringnoRepository id from GET /ticket/v1/repositories; omit for the default tickets container.

Request body

RequiredContent typesDescription
yesapplication/json

Responses

StatusContent typesDescription
200application/jsonThe operation succeeded; the body contains the requested resource or page.
400Invalid native input or unsupported GitHub API version; correct the request before retrying.
401Credentials are absent or invalid; supply a valid API key or signed browser session.
403Machine 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.
404Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
410Ticket is gone; refresh the repository’s ticket list.
422Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
429Native rate limit; wait for retry-after before retrying.