chainabit bit reprioritize
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)
Change the order of Bits
Synopsis
chainabit bit reprioritize --updates <json> [options]Options
| Option | Description | Default |
|---|---|---|
--updates <json> | JSON array of 1–50 entries with id and numeric rank. Required. | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Sets the rank of several Bits in one request. --updates is required and takes a JSON array of 1 to 50 entries; each entry has exactly two keys, id (the Bit's ID) and rank (a number).
Invalid JSON, an empty or longer array, an entry with other keys, or a rank that is not a number is refused before anything is sent. The batch is sent once and never retried. Some entries can fail while the others are applied; the output lists both.
The same command is also available as chainabit bits reprioritize.
Output
Prints how many Bits were updated and which Bits could not be updated. With --json, the output contains updated (a count) and failed (a list of the Bits that could not be updated).
Authentication and permissions
You must be signed in. The service decides whether you may reorder a given Bit; a refusal is shown as an error and nothing changes.
Examples
chainabit bit reprioritize --updates '[{"id":"00000000-0000-4000-8000-000000000001","rank":1},{"id":"00000000-0000-4000-8000-000000000002","rank":2}]'