Skip to content
中文

Update lock

Code Mode: praxis.ticket.tickets.updateLock

HTTP: PUT /ticket/v1/tickets/{number}/lock

Update lock 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. Organization owner or admin authority is required for this write; API keys without role information act as members.

Signature

praxis.ticket.tickets.updateLock(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?:{/** Reason for locking: off-topic, too heated, resolved, or spam. e.g. "off-topic" */ lock_reason?:"off-topic"|"too heated"|"resolved"|"spam"}}):Promise<unknown>;

Parameters

NameInTypeRequiredDescription
numberpathnumberyesTicket number shown by create and list (#12 is 12); not the tk_ id.
repositoryquerystringnoRepository id from GET /ticket/v1/repositories; omit for the default tickets container.

Request body

RequiredContent typesDescription
noapplication/json

Responses

StatusContent typesDescription
204The operation succeeded; no response body.
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.