RemoveUserAssignment()

Un-assign a user to a Service Request

Description

This method un-assigns a user to a Service Request

Package Details

Interface

IAddressManager

Syntax

IAddressManager.RemoveUserAssignment(int serviceRequestId, int userId)

API

[DELETE] /api/v1/servicerequests/{id}/user-assignments/{userId}

Parameters

Parameter

Description

Type

Parameter

Description

Type

id

Service Request Id of the Service Request that has been assigned to a user.

int

userId

The user id the Request has been assigned to

int

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);