Test
This is the updated text using REST API
var test = 123
...
language | c# |
---|
...
Delete a user permission
Description
Delete a user permission for a service.
##Package Details
Interface
IUserServicePermissionManager
Syntax
await UserServicePermissionManager.Delete(UserServicePermission);
Returns
Task<UserServicePermission>
API
DELETE
/api/v1/users/{id}/permissions/{permissionId}
Parameters
Path id: The user's id permissionId: The permission id
Querystring serviceId: The service id organizationId: The id of the organization (optional)
Returns
200 OK
Example
const int userId = 2757;
const int serviceId = 2;
const int permissionId = 3;
const int organizationId = 9999;
var userServicePermission = new UserServicePermission
{
PermissionId = permissionId,
UserId = userId,
ServiceId = serviceId,
OrganizationId = organization2Id
};
var userServicePermission = await _userServicePermissionManager.Delete(userServicePermission);