planUpdate

Graphql fields and variables for the planUpdate mutation

Update a plan

Scope required: product:write

For a complete list of input attributes see the PlanAttributes type

mutation planUpdate ($id: ID!, $attributes: PlanAttributes!, $planFeatures: !) {
  planUpdate (id: $id, attributes: $attributes, planFeatures: $planFeatures) {
      errors
      plan {
        addon
        availableFrom
        availableTo
        basePrice
        code
        contactUsLabel
        contactUsUrl
        createdAt
        description
        id
        internalNotes
        isAvailableNow
        isVisible
        name
        position
        pricingDescription
        productId
        productPlanName
        selfServiceBuy
        selfServiceCancel
        selfServiceRenew
        updatedAt
      }
  }
}

Arguments

{
  "id": "456123",
  "attributes": {
    "productId": "456123",
    "name": "",
    "code": "",
    "position": 123,
    "addon": true,
    "selfServiceBuy": true,
    "selfServiceCancel": true,
    "selfServiceRenew": true,
    "description": "",
    "internalNotes": "",
    "availableFrom": "2022-06-01",
    "availableTo": "2022-06-01",
    "isVisible": true,
    "featureIds": [
      "456123"
    ],
    "pricingDescription": "",
    "pricingStyle": "PlanPricingStyles",
    "contactUsLabel": "",
    "contactUsUrl": ""
  },
  "planFeatures": [
    {
      "id": "456123",
      "planId": "",
      "featureId": "",
      "value": ""
    }
  ]
}
Name
Type
Description

id

ID

attributes

planFeatures

Response

Name
Type
Description

errors

List (String)

plan

Last updated

Was this helpful?