Un-assign a user to a Service Request
Description
This method Un-assign a user to a Service Request
Package Details
Interface
IAddressManager
SyntaxIAddressManager.RemoveUserAssignment(int serviceRequestId, int userId)
API
[DELETE] /api/v1/servicerequests/{id}/user-assignments/{userId}
Parameter:
int id:Service Request Id of the Service Request that has been assigned to a user.
int userId:The UserId the ServiceRequest has been assigned to.
Returns
200 OK - The Service Request User Assignment data that was assigned to the Service Request before it got deleted
Example
int id = 7919
int userId = 2757
var userAssignment = await _serviceRequestManager.RemoveUserAssignment(id, userId);