Mutation
mutation CreateServiceLevelAgreement($input: CreateServiceLevelAgreementInput!) {
createServiceLevelAgreement(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": {
"tierId": "id",
"serviceLevelAgreement": {
"useBusinessHoursOnly": true,
"breachActions": [
{}
]
}
}
}Response
{
"data": {
"createServiceLevelAgreement": {
"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
createServiceLevelAgreement
Create a service level agreement (SLA) for a tier. Each SLA commits your team to responding within a specified time window and can be scoped by thread priority and/or label type. Provide either firstResponseTimeMinutes (time from thread creation to first reply) or nextResponseTimeMinutes (time from each customer message to the next reply), but not both in a single call. A nextResponseTimeMinutes SLA can only be created if a firstResponseTimeMinutes SLA already exists on the same tier. Requires the serviceLevelAgreement:create permission.
MUTATION
createServiceLevelAgreement(input: CreateServiceLevelAgreementInput!): CreateServiceLevelAgreementOutput!Arguments
input
required
serviceLevelAgreement
error
Mutation
mutation CreateServiceLevelAgreement($input: CreateServiceLevelAgreementInput!) {
createServiceLevelAgreement(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": {
"tierId": "id",
"serviceLevelAgreement": {
"useBusinessHoursOnly": true,
"breachActions": [
{}
]
}
}
}Response
{
"data": {
"createServiceLevelAgreement": {
"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?

