Versions Compared

Key

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

...

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

Parameters

...

Parameter

Description

Parameter Type

id

...

The user's id

path

permissionId

...

The permission id

...

path

serviceId

...

The service id

query string

organizationId

...

The id of the organization (optional)

query string

Returns

200 OK

Example

Code Block
languagec#
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 = organizationId
};
var userServicePermission = await _userServicePermissionManager.Delete(userServicePermission);