Change My Gear
edit_my_gearChanges the connector's account's My Gear, in one call. add puts new pieces in; one the account already holds (same brand, name and variant) comes back as already_have and is left as it was. update changes pieces by the ids get_my_gear gives, only the fields sent, null clearing one. A piece that names a catalog_id, as it is added or later, is linked to that catalog row and takes its brand, name, variant, gear type and weight where none were given; null unlinks it. remove puts pieces away by id: they stop being offered on lists, and the lists that still carry them will not bring them back. restore brings put-away pieces back. Each piece answers for itself, in the order sent. What is added or changed here counts as the owner's own word on the piece, so a list saved later cannot overwrite it. Needs a read-and-change access token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | New pieces. | |
| remove | No | Ids of pieces to put away. | |
| update | No | Changes to pieces that exist, each by id. | |
| restore | No | Ids of put-away pieces to bring back. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| added | Yes | Pieces that were new to My Gear. | |
| removed | Yes | One per id in remove, then one per id in restore, in the order sent. | |
| results | Yes | One per piece in add, in the order sent. | |
| updated | Yes | One per entry in update, in the order sent. |