Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Test

This is the updated text using REST API

...

Delete a user permission

Description

Delete a user permission for a service.

Package Details

Interface

IUserServicePermissionManager

Syntax

Code Block
languagec#
await UserServicePermissionManager.Delete(UserServicePermission);

Returns

Code Block
Task<UserServicePermission>

API

Code Block
DELETE
/api/v1/users/{id}/permissions/{permissionId}

Parameters

Path

  • id: The user's id

  • permissionId: The permission id

Query string

  • serviceId: The service id

  • organizationId: The id of the organization (optional)

Returns

200 OK

Example

Code Block
languagec#
const int userId = 2757;
const int serviceId = 2;
const int permissionId = 3;
const int organizationId = 9999;
var test = 1;
var test = "test" userServicePermission = new UserServicePermission
{
 PermissionId = permissionId,
 UserId = userId,
 ServiceId = serviceId,
 OrganizationId = organization2Id
}; 

var userServicePermission = await _userServicePermissionManager.Delete(userServicePermission);