Mutation
mutation DeleteServiceLevelAgreementPolicy($input: DeleteServiceLevelAgreementPolicyInput!) {
deleteServiceLevelAgreementPolicy(input: $input) {
serviceLevelAgreementPolicy {
id
name
description
targets {
id
type
minutes
warnBefore {
__typename
}
pauseOnStatusDetailTypes
businessHoursSchedules {
__typename
}
}
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceLevelAgreementPolicyId": "id"
}
}Response
{
"data": {
"deleteServiceLevelAgreementPolicy": {
"serviceLevelAgreementPolicy": {
"id": "id",
"name": "string",
"description": "string",
"targets": [
{
"id": "id",
"type": "FIRST_RESPONSE_TIME",
"minutes": 1,
"warnBefore": {
"__typename": "ServiceLevelAgreementWarnBefore"
},
"pauseOnStatusDetailTypes": [
"WAITING_FOR_CUSTOMER"
],
"businessHoursSchedules": [
{
"__typename": "BusinessHoursSchedule"
}
]
}
],
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
deleteServiceLevelAgreementPolicy
Delete an SLA policy. Its targets and their SLA trackers are deleted with it, and any thread the policy was applied to falls back to its tier’s SLAs. Requires the serviceLevelAgreement:delete permission.
MUTATION
deleteServiceLevelAgreementPolicy(input: DeleteServiceLevelAgreementPolicyInput!): DeleteServiceLevelAgreementPolicyOutput!Arguments
input
serviceLevelAgreementPolicy
error
Mutation
mutation DeleteServiceLevelAgreementPolicy($input: DeleteServiceLevelAgreementPolicyInput!) {
deleteServiceLevelAgreementPolicy(input: $input) {
serviceLevelAgreementPolicy {
id
name
description
targets {
id
type
minutes
warnBefore {
__typename
}
pauseOnStatusDetailTypes
businessHoursSchedules {
__typename
}
}
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceLevelAgreementPolicyId": "id"
}
}Response
{
"data": {
"deleteServiceLevelAgreementPolicy": {
"serviceLevelAgreementPolicy": {
"id": "id",
"name": "string",
"description": "string",
"targets": [
{
"id": "id",
"type": "FIRST_RESPONSE_TIME",
"minutes": 1,
"warnBefore": {
"__typename": "ServiceLevelAgreementWarnBefore"
},
"pauseOnStatusDetailTypes": [
"WAITING_FOR_CUSTOMER"
],
"businessHoursSchedules": [
{
"__typename": "BusinessHoursSchedule"
}
]
}
],
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

