Edit Service Group API
POST /editServiceGroup
Description
This API endpoint allows users to edit and update an existing service group. The user can modify attributes such as the group's name, description, language, discount tiers, and geolocation restrictions.
Request Body
The request utilizes GraphQL to perform the editServiceGroup
mutation.
Mutation:
mutation editServiceGroup ($id: Int!, $serviceGroup: ServiceGroupEdit!) {
editServiceGroup (id: $id, serviceGroup: $serviceGroup) {
id
name
description
language
discount
discount3
discount6
discount12
discount24
discount36
discountLifetime
}
}
Variables:
{
"id": 0,
"serviceGroup": {
"name": "<Service_Group_Name>",
"description": "<Service_Group_Description>",
"language": "<Language_Code>",
"discount": "<Base_Discount>",
"discount3": "<3_Month_Discount>",
"discount6": "<6_Month_Discount>",
"discount12": "<12_Month_Discount>",
"discount24": "<24_Month_Discount>",
"discount36": "<36_Month_Discount>",
"discountLifetime": "<Lifetime_Discount>",
"gateways": [0],
"allowedGeolocations": [0],
"disAllowedGeolocations": [0]
}
}