Skip to main content
GET
/
v2
/
teams
/
{team_id}
/
sla-definitions
List SLA Definitions
curl --request GET \
  --url https://public.api.serval.com/v2/teams/{team_id}/sla-definitions \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "teamId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "targetDurationSeconds": 123,
      "useCalendarTime": true,
      "scheduleId": "<string>",
      "conditions": [
        {
          "id": "<string>",
          "slaDefinitionId": "<string>",
          "conditionRule": {
            "type": "<string>",
            "field": "<string>",
            "op": "<string>",
            "value": "<string>",
            "values": [
              "<string>"
            ],
            "logicOp": "<string>"
          },
          "resumePolicy": "<string>",
          "priority": 123
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "attachmentCriteria": [
        {
          "type": "<string>",
          "field": "<string>",
          "op": "<string>",
          "value": "<string>",
          "values": [
            "<string>"
          ],
          "logicOp": "<string>"
        }
      ],
      "actionDefinitions": [
        {
          "id": "<string>",
          "slaDefinitionId": "<string>",
          "offsetSeconds": 123,
          "workflowId": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
string
required

Response

Success

data
SlaDefinition · object[]