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:
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, malformedauth,authsupplied for anOAUTHorNO_AUTHsource, a non-publicendpointUrloroauthAudience, anendpointUrlthat names anadagents.jsonidentity document, or no fields supplied.401 UNAUTHORIZED— missing or invalid API key.404 NOT_FOUND— no source with thissourceIdon your storefront.
Related
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