Query
query ServiceLevelAgreementPolicies {
serviceLevelAgreementPolicies {
edges {
cursor
node {
id
name
description
targets {
__typename
}
isArchived
archivedAt {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"serviceLevelAgreementPolicies": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"description": "string",
"targets": [
{
"__typename": "ServiceLevelAgreementPolicyTarget"
}
],
"isArchived": true,
"archivedAt": {
"__typename": "DateTime"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
serviceLevelAgreementPolicies
Returns the SLA policies in the workspace, sorted by name. Pass filters to narrow by name, by the target types a policy holds, or by archived state; by default both active and archived policies are returned. Supports cursor-based pagination. Requires the serviceLevelAgreement:read permission. An archived policy cannot be assigned to new threads; existing threads retain their SLAs. Deleting a policy is done by the user in the Plain app. The Plain app page is https://app.plain.com/workspace/w_…/settings/slas/<policy id>.
QUERY
serviceLevelAgreementPolicies(filters: ServiceLevelAgreementPoliciesFilter, first: Int, after: String, last: Int, before: String): ServiceLevelAgreementPolicyConnection!Arguments
first
Int
after
String
last
Int
before
String
edges
pageInfo
Query
query ServiceLevelAgreementPolicies {
serviceLevelAgreementPolicies {
edges {
cursor
node {
id
name
description
targets {
__typename
}
isArchived
archivedAt {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Response
{
"data": {
"serviceLevelAgreementPolicies": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"name": "string",
"description": "string",
"targets": [
{
"__typename": "ServiceLevelAgreementPolicyTarget"
}
],
"isArchived": true,
"archivedAt": {
"__typename": "DateTime"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

