Skip to content
中文

Create or add reactions

Code Mode: praxis.ticket.comments.reactions.create

HTTP: POST /ticket/v1/comments/{id}/reactions

Create or add reactions 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.comments.reactions.create(args:{path:{/** Resource path value. */ id:string};query?:{/** Opaque repository id. */ repository?:string};body:{/** Reaction to add or remove: +1 approves, -1 disapproves, laugh, confused, heart, hooray, eyes, or rocket. e.g. "+1" */ content:"+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"|"eyes"|"rocket"}}):Promise<{/** Total reactions on this target. */ total_count:number;/** Number of +1 reactions. */ "+1":number;/** Number of -1 reactions. */ "-1":number;/** Number of laugh reactions. */ laugh:number;/** Number of confused reactions. */ confused:number;/** Number of heart reactions. */ heart:number;/** Number of hooray reactions. */ hooray:number;/** Number of eyes reactions. */ eyes:number;/** Number of rocket reactions. */ rocket:number}>;

Parameters

NameInTypeRequiredDescription
idpathstringyesIdentifier returned by the matching create or list operation; number paths take repository-local numbers.
repositoryquerystringnoRepository id from GET /ticket/v1/repositories; omit for the default tickets container.

Request body

RequiredContent typesDescription
yesapplication/json

Responses

StatusContent typesDescription
201application/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.