Mutation
mutation UnarchiveServiceLevelAgreementPolicy($input: UnarchiveServiceLevelAgreementPolicyInput!) {
unarchiveServiceLevelAgreementPolicy(input: $input) {
serviceLevelAgreementPolicy {
id
name
description
targets {
id
type
minutes
warnBefore {
__typename
}
pauseOnStatusDetailTypes
businessHoursSchedules {
__typename
}
}
isArchived
archivedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceLevelAgreementPolicyId": "id"
}
}Response
{
"data": {
"unarchiveServiceLevelAgreementPolicy": {
"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"
}
]
}
],
"isArchived": true,
"archivedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
unarchiveServiceLevelAgreementPolicy
Restore an archived SLA policy so it can be assigned to threads again. Requires the serviceLevelAgreement:edit permission.
MUTATION
unarchiveServiceLevelAgreementPolicy(input: UnarchiveServiceLevelAgreementPolicyInput!): UnarchiveServiceLevelAgreementPolicyOutput!Arguments
input
serviceLevelAgreementPolicy
error
Mutation
mutation UnarchiveServiceLevelAgreementPolicy($input: UnarchiveServiceLevelAgreementPolicyInput!) {
unarchiveServiceLevelAgreementPolicy(input: $input) {
serviceLevelAgreementPolicy {
id
name
description
targets {
id
type
minutes
warnBefore {
__typename
}
pauseOnStatusDetailTypes
businessHoursSchedules {
__typename
}
}
isArchived
archivedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceLevelAgreementPolicyId": "id"
}
}Response
{
"data": {
"unarchiveServiceLevelAgreementPolicy": {
"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"
}
]
}
],
"isArchived": true,
"archivedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

