update-thread
Update thread content or status
Auth
Authenticated Owner Scope
Examples
pearing-cli update-thread website 42 --status draft
pearing-cli update-thread website 42 --kind change --priority now --size large
# read the body from stdin
printf '%s\n' "Revised body" | pearing-cli update-thread website 42 --body -
Expected Response
Prints the updated JSON object.
Errors
400 Bad Requestfor invalid flags/values.404 Not Foundwhen the referenced resource does not exist.403 Forbiddenwhen owner/repo access checks fail.
Common auth errors are documented on the CLI overview page.
Help Output
Update thread content or status.
Usage: pearing-cli update-thread [OPTIONS] <REPO> <NUMBER>
Arguments:
<REPO> Repo locator (`teams/<team_slug>/<repo_slug>` or `<username>/<repo_slug>`), or `<repo_slug>` for authenticated user
<NUMBER> Thread number
Options:
--title <TITLE> Thread title
--body <BODY> Thread body. Pass '-' to read from stdin
--kind <KIND> Thread kind [possible values: discussion, change, task]
--status <STATUS> Thread status [possible values: open, draft, closed, done]
--priority <PRIORITY> Thread priority [possible values: now, later]
--size <SIZE> Thread size [possible values: small, large]
-h, --help Print help