planDuplicate
Create a duplicate of a plan. The planDuplicate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: product:write
mutation planDuplicate ($id: ID!) {
planDuplicate (id: $id) {
errors
plan {
addon
allowMultipleSubscriptions
availableFrom
availableTo
basePrice
code
contactUsLabel
contactUsUrl
createdAt
customFieldsData
description
hasCustomFields
id
internalNotes
isAvailableNow
isVisible
name
position
pricingDescription
productId
productPlanName
selfServiceBuy
selfServiceCancel
selfServiceRenew
updatedAt
}
}
}
Arguments
{
"id": "456123"
}
| Name | Type | Description |
|---|---|---|
| id | ID |
Response
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| plan | Plan |