Skip to content

offering update resets isHidden to false (full-object update with defaults) #78

Description

@GTCC777

Version: acp-cli 1.0.29

Repro:

  1. Hide an offering: acp offering update --offering-id <id> --hidden → confirmed hidden.
  2. Later run any other update on the same offering, e.g. acp offering update --offering-id <id> --subscription-ids "" (or a price/desc change) without passing --hidden.
  3. The offering becomes visible againisHidden silently resets to false.

Cause (observed): the update command appears to send a full offering object with defaults for unspecified fields rather than a partial patch, so any field not re-passed on the command line reverts to its default.

Impact: while a storefront is deliberately parked (e.g. pending fixes), any routine offering edit silently re-publishes it to buyers. We were bitten twice before adopting a "pass --hidden on every update" workaround.

Expected: unspecified fields should be left unchanged (PATCH semantics), or the CLI should warn that omitted fields will be reset.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions