Mutation
mutation UpdateServiceLevelAgreement($input: UpdateServiceLevelAgreementInput!) {
updateServiceLevelAgreement(input: $input) {
serviceLevelAgreement {
id
useBusinessHoursOnly
threadPriorityFilter
threadLabelTypeIdFilter {
labelTypeIds
requireAll
}
breachActions {
__typename
... on BeforeBreachAction {
__typename
}
}
createdAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceLevelAgreementId": "id"
}
}Response
{
"data": {
"updateServiceLevelAgreement": {
"serviceLevelAgreement": {
"id": "id",
"useBusinessHoursOnly": true,
"threadPriorityFilter": [
1
],
"threadLabelTypeIdFilter": {
"labelTypeIds": [
"id"
],
"requireAll": true
},
"breachActions": [
{
"__typename": "BeforeBreachAction"
}
],
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateServiceLevelAgreement
Update an existing SLA’s time target, priority or label filter, business-hours setting, or breach actions. You cannot change an SLA’s type (first-response vs. next-response) after creation. Use the field-level wrapper inputs (e.g. { "value": 60 }) for the fields you want to change and omit the rest. Requires the serviceLevelAgreement:edit permission.
MUTATION
updateServiceLevelAgreement(input: UpdateServiceLevelAgreementInput!): UpdateServiceLevelAgreementOutput!Arguments
input
required
serviceLevelAgreement
error
Mutation
mutation UpdateServiceLevelAgreement($input: UpdateServiceLevelAgreementInput!) {
updateServiceLevelAgreement(input: $input) {
serviceLevelAgreement {
id
useBusinessHoursOnly
threadPriorityFilter
threadLabelTypeIdFilter {
labelTypeIds
requireAll
}
breachActions {
__typename
... on BeforeBreachAction {
__typename
}
}
createdAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceLevelAgreementId": "id"
}
}Response
{
"data": {
"updateServiceLevelAgreement": {
"serviceLevelAgreement": {
"id": "id",
"useBusinessHoursOnly": true,
"threadPriorityFilter": [
1
],
"threadLabelTypeIdFilter": {
"labelTypeIds": [
"id"
],
"requireAll": true
},
"breachActions": [
{
"__typename": "BeforeBreachAction"
}
],
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

