AbodeONE

<back to all web services

UpdateIncident

Requires Authentication
Required role:Admin
The following routes are available for this service:
PUT/incidents/{Id}
UpdateIncident Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
IncidentTypeIdbodyintNo
BuildingIdbodyintNo
ReportedDtbodyDateTimeNo
OccuredDtbodyDateTimeNo
IncidentTitlebodystringNo
DetailsbodystringNo
LocationbodystringNo
InterventionbodystringNo
FollowupbodystringNo
ReporterbodystringNo
ReportedTobodystringNo
RASignedbodystringNo
UpdateIncidentResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformIncidentDTONo
ResponseStatusformResponseStatusNo
IncidentDTO Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
IncidentTypeIdformintNo
BuildingIdformintNo
ReportedDtformDateTimeNo
OccuredDtformDateTimeNo
IncidentTitleformstringNo
DetailsformstringNo
LocationformstringNo
InterventionformstringNo
FollowupformstringNo
ReporterformstringNo
ReportedToformstringNo
RASignedformstringNo
Tracked Parameters:
NameParameterData TypeRequiredDescription
CreatedDtformDateTimeNo
CreatedByformstringNo
ModifiedDtformDateTime?No
ModifiedByformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT //incidents/{Id} HTTP/1.1 
Host: api.lsu-staging.abodehms.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id":0,"incidentTypeId":0,"buildingId":0,"reportedDt":"0001-01-01T00:00:00.0000000","occuredDt":"0001-01-01T00:00:00.0000000","incidentTitle":"String","details":"String","location":"String","intervention":"String","followup":"String","reporter":"String","reportedTo":"String","raSigned":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"result":{"id":0,"incidentTypeId":0,"buildingId":0,"reportedDt":"0001-01-01T00:00:00.0000000","occuredDt":"0001-01-01T00:00:00.0000000","incidentTitle":"String","details":"String","location":"String","intervention":"String","followup":"String","reporter":"String","reportedTo":"String","raSigned":"String","createdDt":"0001-01-01T00:00:00.0000000","createdBy":"String","modifiedDt":"0001-01-01T00:00:00.0000000","modifiedBy":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}