UpdateStatusHistory

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.

Package Details

Interface

IServiceRequestManager

Syntax
IServiceRequestManager.UpdateStatusHistory(ServiceRequestStatusHistoryUpdateDto serviceRequestStatusHistoryUpdate)

Returns

ICollection<MTOA.DomainObjects.ServiceRequestStatusHistoryEx>

API

[PUT] /api/v1/servicerequests/status-history-ex

Parameter

The parameter is of type ServiceRequestStatusHistoryUpdateDto with properties:

  • int ServiceRequestHistoryEntryId

  • DateTime UpdateDate (in UTC)

Returns

200 - Ok

Example

using MTOA.BLL.Interfaces; var serviceRequestStatusHistoryUpdate = new ServiceRequestStatusHistoryUpdateDto { ServiceRequestHistoryEntryId = 3170, UpdateDate = "2020-11-04T13:25:56.919Z" } var statusHistory = await __serviceRequestRepository.UpdateStatusHistory(serviceRequestStatusHistoryUpdate);