Update Date and time of a Status History for a given log entry
Description
This method is used to update the date and time of a status history for a given entry.
The time received by the Api is in UTC. Date should not be great to the current date and
it should be chronological.
The parameter is of type ServiceRequestStatusHistoryUpdateDto with properties:
int ServiceRequestHistoryEntryId
DateTime UpdateDate (in UTC)
Package Details
Interface
IServiceRequestManager
SyntaxIServiceRequestManager.UpdateStatusHistory(ServiceRequestStatusHistoryUpdateDto serviceRequestStatusHistoryUpdate)
Parameter type
ServiceRequestStatusHistoryUpdateDto
Returns
ICollection<MTOA.DomainObjects.ServiceRequestStatusHistoryEx>
API Endpoint
[PUT] /api/v1/servicerequests/status-history-ex
Returns
200 - Ok
Example
using MTOA.BLL.Interfaces;
Parameter var serviceRequestStatusHistoryUpdate = new ServiceRequestStatusHistoryUpdateDto { ServiceRequestHistoryEntryId = 3170, UpdateDate = "2020-11-04T13:25:56.919Z" } var statusHistory = await __serviceRequestRepository.UpdateStatusHistory(serviceRequestStatusHistoryUpdate);