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
| Field | Type | Required | Notes |
|---|---|---|---|
sourceId | string (path) | Yes | Storefront-scoped inventory source ID |
name | string | No | Display name (1–255 chars) |
executionType | enum | No | AGENT only |
status | enum | No | PENDING, ACTIVE, or DISABLED |
description | string | No | Agent description (max 2000) |
endpointUrl | string (uri) | No | Agent endpoint URL (max 2048) |
protocol | enum | No | MCP or A2A |
authenticationType | enum | No | API_KEY, JWT, BASIC_AUTH, NO_AUTH, or OAUTH |
auth | object | No | Updating auth rotates the stored credential. Omit to keep existing credentials. Same API-key / Basic / JWT shapes as create |
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 and passing AAO compliance.Response
200 OK with the updated InventorySourceResponse:
Errors
400 VALIDATION_ERROR— invalid status transition, malformedauth, 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