Mutation
mutation UpdateServiceLevelAgreementPolicy($input: UpdateServiceLevelAgreementPolicyInput!) {
updateServiceLevelAgreementPolicy(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",
"targets": [
{
"type": "FIRST_RESPONSE_TIME",
"minutes": 1,
"warnBefore": {
"minutes": 1
}
}
]
}
}Response
{
"data": {
"updateServiceLevelAgreementPolicy": {
"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
updateServiceLevelAgreementPolicy
Update an SLA policy and its targets. Pass the full set of targets you want the policy to have: a target of an existing type is updated in place, so live SLA trackers are unaffected, a new type is added, and a type you leave out is removed along with its trackers. Requires the serviceLevelAgreement:edit permission.
MUTATION
updateServiceLevelAgreementPolicy(input: UpdateServiceLevelAgreementPolicyInput!): UpdateServiceLevelAgreementPolicyOutput!Arguments
input
serviceLevelAgreementPolicy
error
Mutation
mutation UpdateServiceLevelAgreementPolicy($input: UpdateServiceLevelAgreementPolicyInput!) {
updateServiceLevelAgreementPolicy(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",
"targets": [
{
"type": "FIRST_RESPONSE_TIME",
"minutes": 1,
"warnBefore": {
"minutes": 1
}
}
]
}
}Response
{
"data": {
"updateServiceLevelAgreementPolicy": {
"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?

