Skip to Content

update()

update( projectId, productId, input ): Promise<{ api?: { links?: Record<string, { href: string; }>; redactions?: object[]; }; billingInterval: BillingInterval; conflicts: { clientData: unknown; conflictedAt: number; serverData: unknown; }; createdAt?: string; id: string; metadata: { [key: string]: unknown; displayName?: string; }; object: "product"; project: string; sandboxMode: boolean; sku: string | null; tombstoned?: boolean; tombstonedAt?: string | null; type: ProductType; updatedAt?: string; }>;

Replaces the product’s SKU, billing interval and metadata.

Parameters

projectId

string

productId

string

input

billingInterval

BillingInterval = ...

metadata?

{ [key: string]: unknown; displayName?: string; } = ...

metadata.displayName?

string = ...

sku

string = ...

Last updated on