CREATE Incident
The requirements for an HTTP CREATE request for an Incident resource URI are in the table. An example is also included.
HTTP Method: | POST | |
Request Headers: | Authorization | Required. See the Configuring section of this document. |
Host | Required | |
Accept: |
|
|
Request Body: | N/A | |
Example URIs: | http://localhost:7001/maximo/oslc/os/oslcincident Substitute the example host and port with your host and port. |
Example:
Body:
{
"dcterms:title":"My New Incident",
"prefixes":{
"dcterms":"http://purl.org/dc/terms/"
}
}
Response:
Status Code: 201 Created
Content-Length: 0
Date: Sun, 26 May 2013 19:20:35 GMT
Etag: -1269179891
Location: http://localhost:7001/maximo/oslc/os/oslcincident/
_SU5DSURFTlQvMTEyOQ--
X-Powered-By: Servlet/2.5 JSP/2.1
Note: Person records are read only.
Optional: Get the reported by person URI by looking for the specific person you want.