Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

  • int ServiceRequestHistoryEntryId

  • DateTime UpdateDate (in UTC)

Package Details

Interface

IServiceRequestManager

Syntax
IServiceRequestManager.UpdateStatusHistory(ServiceRequestStatusHistoryUpdateDto serviceRequestStatusHistoryUpdate)

Parameter type

ServiceRequestStatusHistoryUpdateDto

Returns

ICollection<MTOA.DomainObjects.ServiceRequestStatusHistoryEx>

API

...

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

Returns

200 - Ok

Example

Code Block
languagec#
using MTOA.BLL.Interfaces;

...

Code Block
Parameter

var serviceRequestStatusHistoryUpdate = new ServiceRequestStatusHistoryUpdateDto 
{
	ServiceRequestHistoryEntryId = 3170,
	UpdateDate = "2020-11-04T13:25:56.919Z"
}


var statusHistory = await __serviceRequestRepository.UpdateStatusHistory(serviceRequestStatusHistoryUpdate);

...