CREATE Service

The requirements for an HTTP CREATE request for an service resource URI are in the table. An example is also included.

Table 1. CREATE - Service
HTTP Method: POST
Request Headers:
Authorization
Required. See the Configuring Maximo IT section of this document.
Host
Required
Accept:
application/json
Request Body: As shown in Example.
Example URIs:

https://masdev.manage.inst1.apps.openshiftqa1.icdlab.com/maximo/api/os/cduiserviceview?oslc.select=*

Example:

Body:
{
    "spi:service_name": "FinalPayload",
    "spi:description": "Service created using API desc",
    "spi:owned_by": "REVIS",
    "spi:owner_type": "owner",
    "spi:owned_by": "MILLS",
    "spi:owner_type": "ownergroup", // If it is owner then owner_type should be owner
    "spi:service_provision": "Both",
    "spi:supported_by": "STANLEY",
    "spi:supported_type": "support",
    "spi:supported_by": "ENG",
    "spi:supported_type": "supportgroup", // If it is supportgroup then supported_type should be supportgroup
    "spi:status": "ACTIVE",
    "spi:service_support_information": "TEST Support",
    "spi:impacted_organization": "EAGLENA",
}
Note: If the administrator enters values for both Owner and Owner group, then value saved in Owned by field will be value given in Owner group. Similarly, if the administrator enters values for both Support and Support group, then value saved in Supported by field will be value given in Support Group.
Response:
    Status Code: 201 Created

Note: Service records are read only.