chainabit bit update
Published (2.2.0)
This command is not included in Published (2.2.0). It is available in Development (2.2.0).
Development (2.2.0)
Edit a Bit
Synopsis
chainabit bit update <id> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<id> | Required. | — |
Options
| Option | Description | Default |
|---|---|---|
--scheduled-date <date> | Start date (YYYY-MM-DD) | — |
--scheduled-time <time> | Start time | — |
--scheduled-to-date <date> | End date (YYYY-MM-DD) | — |
--scheduled-to-time <time> | End time | — |
--is-all-day <boolean> | All day. Accepted values: true, false. | — |
--title <text> | Title | — |
--note <text> | Note | — |
--document <json> | Block document in JSON | — |
--pages <json> | Ordered pages in JSON | — |
--chainy-id <id> | Project ID | — |
--priority <value> | Priority | — |
--status <value> | Status | — |
--waiting-on <value> | Who or what the Bit is waiting for | — |
--waiting-expected-by <datetime> | Expected response date and time | — |
--stage-id <id> | Stage ID | — |
--stage-order <n> | Position in stage | — |
--publish-state <state> | Publication status | — |
--assignee-id <id> | Assignee | — |
--assignee-ids <json> | Assignee IDs in JSON (use [] to clear) | — |
--revision <n> | Last read Bit revision (required for block documents) | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Changes only the fields you pass; every other field keeps its value. You must pass at least one field, otherwise the command refuses. Editable fields are the title, note, block document, ordered pages, project, priority, status, what the Bit is waiting for and until when, stage and position in the stage, publication status, assignees, and the calendar dates and times.
--document,--pagesand--assignee-idstake JSON; invalid JSON is refused before anything is sent. Use--assignee-ids '[]'to clear all assignees.--waiting-on,--waiting-expected-by,--assignee-idand the options--scheduled-date,--scheduled-time,--scheduled-to-dateand--scheduled-to-timeacceptnoneto clear the value.--is-all-daytakestrueorfalse.--stage-ordermust be a whole number of zero or more.--status deletedis refused; usedeleteto remove a Bit.- With
--revision <n>, the change is applied only if the Bit still has that revision. The revision is required when you edit a block document. Read the current value withget.
The same command is also available as chainabit bits update.
Output
Prints the updated Bit as a list of labelled fields. With --json, the output is the updated Bit record, including its new revision.
Authentication and permissions
You must be signed in. The service decides whether you may change a given Bit; a refusal is shown as an error and nothing changes.
Examples
chainabit bit update 00000000-0000-4000-8000-000000000001 --title "Reference title" --note "Reference note"
chainabit bit update 00000000-0000-4000-8000-000000000001 --waiting-on none --revision 12
chainabit bit update 00000000-0000-4000-8000-000000000001 --assignee-ids '[]'