Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/reference/datasources.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ cat datasource.json | gmc datasources create

Input precedence: `--file` → flags → piped stdin. Passing both `--file` and flags is an error. `--json` returns the created `DataSource`.

::: tip Read-after-write
`create` returns the source (with its `dataSourceId`) immediately, but the Merchant API is eventually consistent: a `get` / `update` / `delete` in the next instant may briefly return `404` until it propagates — usually a few seconds, up to ~20s. If you script `create` followed by another call on the new id, allow a short delay or retry.
:::

Then push products into the new source:

```sh
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/regions.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ flags (output-only — a region must cover enough area to be usable). `--json` e
result (`{ "regions": [...] }` for list, the resource for get/create/update, `{ "deleted": "<id>" }`
for delete).

::: tip Read-after-write
`create` returns the region immediately, but the Merchant API is eventually consistent: a `get` / `update` / `delete` / `list` in the next instant may briefly return `404` (or omit it) until it propagates — usually a few seconds, up to ~20s. If you script `create` followed by another call on the new id, allow a short delay or retry.
:::

## Exit codes

`0` success · `2` usage (no/both areas, missing `--region-code`, unreadable `--file`, bad
Expand Down