UpdateStatus()

Update the status of a service request

Description

This method is used to change the status of a service request. The most commonly used statuses are "in progress" (InProgress), and "submitted" (Submitted). The full list of possible statuses is:

  • InProgress

  • Submitted

  • InReview

  • Completed

  • TrainingCompleted

  • InformationRequired

  • Accepted

  • AcceptedWithUpdates

  • Canceled

  • Initiated

  • Expired

  • Rejected

  • Failed

  • PickedUp

  • TestPaymentPending

  • TestPaymentSent

  • Validated

  • Verified

  • Approved

  • OnHold

  • PendingApproval

  • Issued

Caveat

Most statuses are not available by default for a service. You may need to contact the platform team to have a status added to your service.

Package Details

Interface

IServiceRequestManager

Syntax

ServiceRequestManager.UpdateStatus(int serviceRequestId, int userId, ServiceRequestStatus statusCode) ServiceRequestManager.UpdateStatuses(ICollection<int> serviceRequestIds, int userId, ServiceRequestStatus statusCode)

Returns

Task

API Endpoint

[POST] /api/v1/servicerequests/{id}/updatestatus

Returns

200 - Ok

Example

using MTOA.BLL.Interfaces; int serviceRequestId= 12345; await _serviceRequestManager.UpdateStatus(serviceRequestId, CurrentUser.Id, ServiceRequestStatus.Submitted);