Skip to main content
PUT
Rotate modular source module credential

Authorizations

Authorization
string
header
required

API key or access token

Path Parameters

sourceId
string
required

Inventory source ID

Minimum string length: 1
moduleInstanceId
string
required

Seller-local module instance id

Minimum string length: 1
credentialKind
enum<string>
required

Module credential kind

Available options:
API_KEY,
BEARER,
OAUTH

Body

application/json

Create or rotate a storefront-scoped credential for one private inventory-source module.

auth
object
required

Provider credential material. Stored only in the configured secret manager and never returned.

scopes
string[]
Minimum string length: 1
expiresAt
string<date-time> | null
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
lastRefreshedAt
string<date-time> | null
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
metadata
object

Response

Rotate modular source module credential

Non-secret lifecycle metadata for one inventory-source module credential.

data
object
required