Online Docs

List Severities

Retrieve the list of all severities in the specified channel within a team.

GET odata/severity –x-appvity-channelId: [ChannelID] –x-appvity-teamid: [TeamID] –Cookie: graphNodeCookie=[ID]

URL Endpoint

odata/severity

Method

GET.

Parameters

See OData Filter syntax.

Request

Header

–x-appvity-channelId: [ChannelID]

–x-appvity-teamid: [TeamID]

–Cookie: graphNodeCookie=[ID]

Body

This method does not supply the request body.

Response

Success

If successful, this method returns a 200 OK response code and the list of severities object in the response body.

{

“@odata.context”:
https://schema.appvity.com/odata/$metadata#severity(_id,name,primary,color)",

“value”: [

{

“_id”: [SeverityID],

“name”: [SeverityName],

“color”: [ColorCode],

“primary”: [false/true]

}

]

}

Error

Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION
Content: {error: “error message”}

Example

Request

curl –location –request GET
https://teams.appvity.com/odata/severity?t=1600918531823&$count=true&$select=_id,name,primary,color&$orderby=order%20asc'
\

–header ‘x-appvity-channelId:
19:15c258785b4040699180e7a8ad6c6014@thread.tacv2‘ \

–header ‘x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2
\

–header ‘Cookie:
graphNodeCookie=s%3A5gSGYHBL_ROQU5vUq8jOs14G4lots6AQ.n8Pyw0yA5Da2z%2FLkrVkE4o5Tv33mopQ17KPC1NtO52I’

Respond

{

“@odata.context”:
https://schema.appvity.com/odata/$metadata#severity(_id,name,primary,color)",

“value”: [

{

“_id”: “5f5ed9639669798c318eb763”,

“name”: “Critical”,

“color”: “#262626”,

“primary”: false

},

{

“_id”: “5f5ed9639669798c318eb764”,

“name”: “High”,

“color”: “#C13636”,

“primary”: false

},

{

“_id”: “5f5ed9639669798c318eb765”,

“name”: “Medium”,

“color”: “#6BBF6D”,

“primary”: true

},

{

“_id”: “5f5ed9639669798c318eb766”,

“name”: “Low”,

“color”: “#1666e6ff”,

“primary”: false

}

],

“@odata.count”: 4

}

Comment

Was this article helpful?
Thanks For Your Feedback