The Admin GraphQL API’s mutation now sets the status of markets that use conditions to DRAFTwhen you supply enabled: false without status. This is a breaking bug fix: apps using this input should review their calls because they can now change a market’s status or return validation errors.
What changed
The mutation now treats enabled: false as status: DRAFT for markets that use conditions when status is not supplied. Previously, enabled: false was silently ignored for these markets.
The enabled input remains deprecated in favour of status.
Calls that previously succeeded without changing the market’s status can now set the market's status to DRAFT or return these existing validation errors:
MUST_HAVE_AT_LEAST_ONE_ACTIVE_REGION_MARKET: The change would leave the shop without an active region market.SUBDIVISION_MARKET_REQUIRES_COUNTRY_COVERAGE: The country market is required to cover an active subdivision market.
If validation fails, no changes from that call are saved, including updates to other fields.
Who's affected
This change affects apps that send enabled: false without status when updating a market that uses conditions. It also applies when the same update converts a market to use conditions.
Calls that use status without enabled are unchanged.
This fix applies to all supported Admin GraphQL API versions including unstable.
Why this matters
A successful update no longer silently ignores the request to draft a market because that market uses conditions.
Action required
Review calls that send enabled: false without status:
- If drafting is intended, replace
input: { enabled: false }withinput: { status: DRAFT }. - If drafting is not intended, omit
enabled: falserather than relying on it being ignored. - Handle
before treating the update as successful. For a successful drafting request, verify that the returned market’s status is DRAFT.
Using status: DRAFT does not bypass the validation rules above.
Related docs
- marketUpdate mutation
- MarketUpdateInput reference