Skip to main content
Creates a new addon in draft status.

Mutation

mutation CreateAddon($input: AddonCreateInput!) {
  createOneAddon(input: $input) {
    id
    refId
    displayName
    description
    status
    pricingType
    maxQuantity
    versionNumber
  }
}
{
  "input": {
    "refId": "addon-extra-seats",
    "displayName": "Extra Seats",
    "description": "Add more team members",
    "productId": "product-main",
    "pricingType": "PAID",
    "maxQuantity": 100
  }
}
{
  "data": {
    "createOneAddon": {
      "id": "addon-uuid-123",
      "refId": "addon-extra-seats",
      "displayName": "Extra Seats",
      "description": "Add more team members",
      "status": "DRAFT",
      "pricingType": "PAID",
      "maxQuantity": 100,
      "versionNumber": 1
    }
  }
}

Parameters

input
AddonCreateInput
required
Input for creating an addon

Return Type

Returns the created Addon object in DRAFT status.