Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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

  • No labels