Skip to main content
PUT /api/v2/storefront/inventory-sources/{sourceId} Updates an AGENT inventory source. Updates are partial — send any subset of fields. Status transitions manage the linked agent lifecycle. MANAGED_SALES_AGENT, LINKED_STOREFRONT, and MODULAR_SOURCE lifecycles use their dedicated flows instead.

Request

Parameters

Allowed status transitions: PENDING → ACTIVE, PENDING → DISABLED, and ACTIVE ↔ DISABLED. A source cannot transition back to PENDING. Setting status: ACTIVE requires the backing agent to be authenticated. AAO compliance is surfaced as an advisory signal, not an activation blocker.

Response

200 OK with the updated InventorySourceResponse:
When oauthAudience is supplied and OAuth flow creation succeeds, the response also includes oauth.authorizationUrl. Redirect the operator there and complete consent; the stored audience does not make the new token usable by itself. If the update succeeds without an oauth field, the audience is stored but a temporary discovery or flow-storage failure prevented consent from starting. Retry the same update to request a fresh URL.

Errors

  • 400 VALIDATION_ERROR — invalid status transition, malformed auth, auth supplied for an OAUTH or NO_AUTH source, a non-public endpointUrl or oauthAudience, an endpointUrl that names an adagents.json identity document, or no fields supplied.
  • 401 UNAUTHORIZED — missing or invalid API key.
  • 404 NOT_FOUND — no source with this sourceId on your storefront.
See Errors for the full error contract.

Inventory source tasks

All operations

Inventory sources overview

Concepts and lifecycle

Get inventory source

Read one source by ID

Delete inventory source

Remove a source