Service Manager
Create a Business Object
You can create a business object available out-of-the-box, such as a Change, Problem, Incident, or any custom defined business object of your choice.
Base URL:
https://{tenant url}/api/odata/businessobject/{business object name}
![Closed](../../../Skins/Default/Stylesheets/Images/transparent.gif)
Here is an example to create a change business object.
URL | https://{tenant url}/api/odata/businessobject/changes |
Method |
POST |
Header Name | Authorization : Sessionkey |
Request Payload |
![]() {
} |
Status Code |
201 |
Response Payload |
![]() {
} |
Unsuccessful Responses
![Closed](../../../Skins/Default/Stylesheets/Images/transparent.gif)
Scenario: Trying to create a business object with empty request body.
Header Name:
Authorization: Sessionkey
Code |
ISM_4000 |
Description | Invalid Request Payload |
Message |
{ "Message body cannot be empty." } |
HTTP STATUS CODE |
400 |
![Closed](../../../Skins/Default/Stylesheets/Images/transparent.gif)
Scenario: Trying to create a business object invalid request body.
Header Name:
Authorization: Sessionkey
Code |
ISM_4000 |
Description | Invalid Request Payload |
Message |
[ "Invalid Business Object." ], |
HTTP STATUS CODE |
400 |
![Closed](../../../Skins/Default/Stylesheets/Images/transparent.gif)
Scenario: Trying to create a business object with missing mandatory fields.
Header Name:
Authorization: Sessionkey
Code |
ISM_4000 |
Description | Invalid Request Payload |
Message |
[ "Mandatory field "Category" value must be provided.", "Mandatory field "Description" value must be provided.", "Mandatory field "Status" value must be provided." ] |
HTTP STATUS CODE |
400 |
![Closed](../../../Skins/Default/Stylesheets/Images/transparent.gif)
Scenario: When trying to create an incident or update an incident, the application fails to save and give a proper response from our API.
Header Name:
Authorization: Sessionkey
Code |
ISM_5000 |
Description | Internal server error |
Message |
[ "The server encountered an internal error. Please retry the request." ], |
HTTP STATUS CODE |
500 |
Was this article useful?
Copyright © 2019, Ivanti. All rights reserved.