Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
bgColor#DEEBFF
GET/integration/V1/metric/{id}metrics

Get Returns the SLA metric(s) of the given ID.

     check mark 

Ids (array[string]) - IDs of metrics to return.

Expand
titleParameters


ParameterTypeDefault valueRequired
idstring
Expand
titleResponse example

Request URL: https://slaapp.almarise.com/integration/V1/metric/6751a9af00835a31fb1c27acmetrics

Response body:

Code Block
[
    {
        "name": "stringTime to Resolution",
        "description": "string"
}
Panel
bgColor#fee6c8
PUT/integration/V1/metric/{id}

Update the given SLA metric (e.g. change the name of the metric).

Expand
titleParameters
ParameterTypeDefault valueRequired
idstring     check mark 
Expand
titleRequest body
Code Block
{
Time to Resolution of the ticket",
        "id": "6751a9af00835a31fb1c27ac"
    },
    {
        "name": "Time to ResolutionFirst Response",
        "description": "Time to First ResolutionResponse of the ticket"
}
Expand
titleResponse example

Request URL: https://slaapp.almarise.com/integration/V1/metric/6751a9af00835a31fb1c27ac

Response body:

Code Block
{
,
    "name": "Time To Resolution",
    "id": "6751a9af00835a31fb1c27ac67530aa500835a31fb1c27b3"
    }
]


Responses

Status
colourGreen
title200
- OK. Returned if the request is successful.

Status
colourYellow
title401
- Unauthorized.

Status
colourYellow
title403
- Forbidden. Returned if the user does not have permission to complete this request.

Status
colourRed
title500
- Server Error.