Schema to update a product.
Field | Type | Required | Description |
---|---|---|---|
Metadata |
map[string]components.ProductUpdateMetadata | ➖ | N/A |
Name |
*string | ➖ | N/A |
Description |
*string | ➖ | The description of the product. |
IsArchived |
*bool | ➖ | Whether the product is archived. If true , the product won't be available for purchase anymore. Existing customers will still have access to their benefits, and subscriptions will continue normally. |
Prices |
[]components.ProductUpdatePrices | ➖ | List of available prices for this product. If you want to keep existing prices, include them in the list as an ExistingProductPrice object. |
Medias |
[]string | ➖ | List of file IDs. Each one must be on the same organization as the product, of type product_media and correctly uploaded. |
AttachedCustomFields |
[]components.AttachedCustomFieldCreate | ➖ | N/A |