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

Version 1 Current »

Add

Description

Adds a permission to a service.

Package Details

Interface

IServicePermissionManager

Syntax

await ServicePermissionManager.Add(ServicePermission servicePermission);

Returns

Task<ServicePermission>

API

POST
/api/v1/services/permissions

Parameters

Request Body
{
"PermissionId": 0,
"PermissionAbbrLbl": "string",
"PermissionEnm": "string",
"PermissionFnm": "string",
"ServiceId": 0,
"EnglishComment": "string",
"FrenchComment": "string"
}

Returns

200 OK - Service permission

Example

var servicePermission = new ServicePermission
{
ServiceId = 11,
PermissionId = 100,
EnglishComment = "Permission name en",
FrenchComment = "Permission name fr"
};

var newServicePermission = await _servicePermissionsManager.Add(servicePermission);

  • No labels