## Endpoint: `/api/severity-priority/`
**Method**: GET
**Description**: Fetch a list of all severity priorities with relevant information such as color, background, and level.
### Parameters
|Parameter|Type|Required|Description|Example Value|
|---|---|---|---|---|
|None|-|-|No parameters required|-|
### Headers
|Header|Type|Required|Description|Example Value|
|---|---|---|---|---|
|Authorization|string|Yes|Bearer token for authentication|Bearer|
### Example Response
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": <Color_id1>,
... COLOR1 DETAILS ...
},
{
"id": <Color_id2>,
... COLOR2 DETAILS ...
},
],
}
---
## Endpoint: `/api/severity-priority/{id}/`
**Method**: GET
**Description**: Retrieve details of a specific severity priority by ID.
### Parameters
|Parameter|Type|Required|Description|Example Value|
|---|---|---|---|---|
|id|string|Yes|Unique identifier for the severity priority|12345|
### Headers
|Header|Type|Required|Description|Example Value|
|---|---|---|---|---|
|Authorization|string|Yes|Bearer token for authentication|Bearer|
### Example Response
{
"id": <Color_id1>,
... COLOR1 DETAILS ...
}
---
## Endpoint: `/api/severities/`
**Method**: GET
**Description**: Fetch a list of all severities for all customers.
### Parameters
|Parameter|Type|Required|Description|Example Value|
|---|---|---|---|---|
|None|-|-|No parameters required|-|
### Headers
|Header|Type|Required|Description|Example Value|
|---|---|---|---|---|
|Authorization|string|Yes|Bearer token for authentication|Bearer|
### Example Response
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": <Severity_id1>,
"name": "Critical",
... SEVERITY DETAILS ...
},
{
"id": <Severity_id2>,
"name": "Warning",
... SEVERITY DETAILS ...
}
],
"next_page": null
}
---
## Endpoint: `/api/severities/`
**Method**: POST
**Description**: Create a new severity level.
### Parameters
|Parameter|Type|Required|Description|Example Value|
|---|---|---|---|---|
|None|-|-|No parameters required|-|
### Headers
|Header|Type|Required|Description|Example Value|
|---|---|---|---|---|
|Authorization|string|Yes|Bearer token for authentication|Bearer|
### Request Payload
{
"name": "{Severity_name}",
"customer": "{Customer_id}",
"customer_priority": {Customer_priority},
"priority_level": {Priority_level}
}
### Example Response
`The details of the request (payload)`
---
## Endpoint: `/api/severities/{id}/`
**Method**: GET
**Description**: Retrieve details of a specific severity level by ID.
### Parameters
|Parameter|Type|Required|Description|Example Value|
|---|---|---|---|---|
|id|string|Yes|Unique identifier for the severity level|12345|
### Headers
|Header|Type|Required|Description|Example Value|
|---|---|---|---|---|
|Authorization|string|Yes|Bearer token for authentication|Bearer|
### Example Response
{
"id": <Severity_id>,
"name": "Critical",
... SEVERITY DETAILS ...
}
---
## Endpoint: `/api/severities/{id}/`
**Method**: PUT
**Description**: Update details of a specific severity level by ID.
### Parameters
|Parameter|Type|Required|Description|Example Value|
|---|---|---|---|---|
|id|string|Yes|Unique identifier for the severity level|12345|
### Headers
|Header|Type|Required|Description|Example Value|
|---|---|---|---|---|
|Authorization|string|Yes|Bearer token for authentication|Bearer|
### Request Body
{
"name": "{Severity_name}",
"customer": "{Customer_id}",
"customer_priority": {Customer_priority},
"priority_level": {Priority_level}
}
### Example Response
`The details of the request (payload)`
---