Create problem REST API
Use this REST API to create a problem from scratch. You can also create a service ticket from a problem, or create a problem from an event or collection set.
Create a problem from scratch
| Resource | Description | |
|---|---|---|
| URI | /admin/resources/problems |
|
| Method | POST | |
| Request body | JSON | |
| Returns | 201 | The problem is created. |
| 400 | There are problems parsing the JSON data in the request. | |
| 403 | The requester does not have sufficient permission to create the problem. | |
| 500 | The system encountered an internal error while processing the request. | |
Request
body
{
"business_impact":"<business impact of the problem>",
"error_message":"<error message for the problem>", //optional
"event_msg_text":"<summary of the problem>",
"problem_description":"<description of the problem>",
"severity":"x", // x is in the 1-4 range
"event_failing_machine_type":"<machine_type>", // optional
"request_collection_set":true, // whether a collection should be requested, optional
"event_failing_machine_model":"<machine model>", // optional
"event_failing_machine_serial":"<machine_serial>", // optional
"service_request_number":"<existing_service_request_number>"
}Create a service ticket from a problem
| Resource | Value | |
|---|---|---|
| URI | /admin/resources/problems/<id> |
|
| Method | POST | |
| Request body | JSON | |
| Returns | 201 | The service ticket is created. |
| 400 | There are problems parsing the JSON data in the request. | |
| 403 | The requester does not have sufficient permission to create the service ticket. | |
| 500 | The system encountered an internal error while processing the request. | |
Request body
{
"action":"create_service_ticket"
}Import a service ticket into a problem
| Resource | Value | |
|---|---|---|
| URI | /admin/resources/problems/<id> |
|
| Method | POST | |
| Request body | JSON | |
| Returns | 201 | The service ticket is imported. |
| 400 | There are problems parsing the JSON data in the request. | |
| 403 | The requester does not have sufficient permission to import the service ticket. | |
| 500 | The system encountered an internal error while processing the request. | |
Request body
{
"action":"import_service_ticket",
"service_request_number" : "<existing_service_request_number>"
}Create a problem from an event
| Resource | Value | |
|---|---|---|
| URI | /admin/resources/problems |
|
| Method | POST | |
| Request body | JSON | |
| Returns | 201 | The problem is created. |
| 400 | There are problems parsing the JSON data in the request. | |
| 403 | The requester does not have sufficient permission to create the problem. | |
| 500 | The system encountered an internal error while processing the request. | |
Request body
{
"event_id": <event id>
}Create a problem from a collection set
| Resource | Value | |
|---|---|---|
| URI |
/admin/resources/problems
|
|
| Method | POST | |
| Request body | JSON | |
| Returns | 201 | The problem is created. |
| 400 | There are problems parsing the JSON data in the request. | |
| 403 | The requester does not have sufficient permission to create the problem. | |
| 500 | The system encountered an internal error while processing the request. | |
Request
body
{
"systemlog_id": "<system_log_id>",
"business_impact": "None, this is a test.",
"error_message": "This is a test of the create problem CLI", //optional
"event_msg_text": "Testing the CLI",
"problem_description": "test",
"severity": "3"
}