Zum Hauptinhalt springen
PUT
/
catalogue
/
product-groups
/
{id}
cURL
curl -X PUT \
 /catalogue/product-groups/{id} \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer <token>" \
 --data '{"name": "Updated Name", "enabled": true}'
{
  "id": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
  "name": "SaaS Packages",
  "enabled": true,
  "forceSameBillingInterval": false,
  "memberships": [
    {
      "id": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
      "product": "<unknown>",
      "pricePlans": [
        "<unknown>"
      ],
      "position": 123,
      "label": "Pro",
      "upgradeable": true,
      "downgradeable": true,
      "changeTiming": "immediately",
      "creditType": "full"
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}
Update a product group.

Autorisierungen

Authorization
string
header
erforderlich

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Pfadparameter

id
string
erforderlich

ProductGroup identifier

Body

application/json

The updated ProductGroup resource

Create or update a product group

name
string
erforderlich
Beispiel:

"SaaS Packages"

enabled
boolean
erforderlich
Beispiel:

true

forceSameBillingInterval
boolean
Beispiel:

false

memberships
object[]

Antwort

ProductGroup resource updated

A product group for up- and downgrades

id
string
Beispiel:

"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b"

name
string
Beispiel:

"SaaS Packages"

enabled
boolean
Beispiel:

true

forceSameBillingInterval
boolean

If true, customers can only switch between plans with the same billing interval

Beispiel:

false

memberships
object[]
createdAt
string<date-time>
updatedAt
string<date-time>