PATCH /api/v2/storefront/inventory-sources/{sourceId}/modular/modules/{moduleInstanceId}/config
Updates the non-secret configuration for one module on a modular inventory source. Nested config objects are deep-merged by default; pass merge: false to replace the module config wholesale.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
sourceId | string (path) | Yes | Storefront-scoped inventory source ID |
moduleInstanceId | string (path) | Yes | Seller-local module instance id |
config | object | Yes | Non-secret module configuration values to write |
merge | boolean | No | true (default) deep-merges into existing config; false replaces it |
status | enum | No | Manual module status: CONFIGURING, DISABLED, or ERROR. ACTIVE is derived by readiness workflows and cannot be set here. Omit to leave unchanged |
Response
200 OK with the refreshed InventorySourceRuntimeProjection (same shape as Get modular readiness). The updated module reflects the new configuredFieldKeys and recomputed missingSetupFieldsBySource:
Errors
400 VALIDATION_ERROR— missingconfig, orstatus: ACTIVE(not settable here).401 UNAUTHORIZED— missing or invalid API key.404 NOT_FOUND— no modular source with thissourceId, or no module with thismoduleInstanceId.
Related
Inventory source tasks
All operations
Get modular readiness
See missing fields and lifecycle stages
Get inventory source
Read the source row
Inventory sources overview
Concepts and lifecycle