Delete Schedule

If you attempt to delete a schedule that is mentioned in any escalation policies, you will receive an error. You need to replace the schedule with another schedule/user/squad. Please follow the example below to achieve this.

mutation{
  deleteSchedule(
  ID:001,
  input:[
    {
      escalationPolicyID:"6459bfd03921290fba093f98",
      scheduleIDs:[9054,9053],
      userIDs:[],
      squadIDs:[]
    }
  ]){
    schedule{
      ID,
      name,
      escalationPolicies{
        name,
        ID
      }
    }
    conflictingEscalationPolicies{
      name
    }
  }
}

Response:

{
  "data": {
    "deleteSchedule": {
      "schedule": {
        "ID": 001,
        "name": "Product Schedule1",
        "escalationPolicies": []
      },
      "conflictingEscalationPolicies": []
    }
  }
}

Last updated