Example Query
mutation UpdateRatingGroupHierarchy {
updateRatingGroupHierarchy(
input: {
providerId: "{{_.providerId}}"
root: {
children: [
{
id: 100
perUnitRounding: 60
name: "Voice"
unitType: TIME
children: []
}
{
id: 200
perUnitRounding: 1
name: "Text"
unitType: SERVICE_SPECIFIC_UNITS
children: []
}
{
id: 300
perUnitRounding: 1024
name: "Data"
unitType: VOLUME
quotaValidityTime: 600
enableDynamicQuotaAllocation: false
children: [
{
id: 301
name: "WhatsApp"
unitType: VOLUME
quotaValidityTime: 600
enableDynamicQuotaAllocation: false
}
]
}
{
id: 500
perUnitRounding: 1073741824
name: "Fwa"
quotaValidityTime: 600
enableDynamicQuotaAllocation: false
children: []
}
{
id: 400
name: "Monetary"
perUnitRounding: 1
children: []
unitType: SERVICE_SPECIFIC_UNITS
}
]
id: 0
name: "Root"
perUnitRounding: null
}
}
) {
... on InvalidField {
errorMessage
errorCode
}
... on UpdateRatingGroupHierarchyPayload {
root {
children {
id
name
perUnitRounding
children {
id
name
}
}
}
}
... on RatingGroupHierarchyHasReferences {
errorMessage
errorCode
ratingGroup {
id
name
}
}
... on RatingGroupValidationFailed {
errorMessage
errorCode
root {
id
name
providerId
perUnitRounding
}
}
}
}
Example Response
{
"data": {
"updateRatingGroupHierarchy": {
"root": {
"children": [
{
"id": 100,
"name": "Voice",
"perUnitRounding": 60,
"children": []
},
{
"id": 200,
"name": "Text",
"perUnitRounding": 1,
"children": []
},
{
"id": 300,
"name": "Data",
"perUnitRounding": 1024,
"children": [
{
"id": 301,
"name": "WhatsApp"
}
]
},
{
"id": 500,
"name": "Fwa",
"perUnitRounding": 1073741824,
"children": []
},
{
"id": 400,
"name": "Monetary",
"perUnitRounding": 1,
"children": []
}
]
}
}
}
}