/
UpdateStatus()
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);
, multiple selections available,
Related content
UpdateStatuses()
UpdateStatuses()
Read with this
MTAPI Supported Service Request Statuses
MTAPI Supported Service Request Statuses
More like this
UpdateStatusHistory
UpdateStatusHistory
Read with this
Create, Read, Update, Submit of Service Requests Using NUGET Packages
Create, Read, Update, Submit of Service Requests Using NUGET Packages
More like this
Status change tracking for maintaining service standards
Status change tracking for maintaining service standards
Read with this
Service Applications
Service Applications
More like this