Versions Compared

Key

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

...

Adds a permission to a service

Description

Adds a permission to a service.

...

POST
/api/v1/services/permissions

Parameters

Request Body{

Code Block
languagejson
{
  "PermissionId": 0,

...


  "PermissionAbbrLbl": "string",

...


  "PermissionEnm": "string",

...


  "PermissionFnm": "string",

...


  "ServiceId": 0,

...


  "EnglishComment": "string",

...


  "FrenchComment": "string"

...


}

Returns

200 OK - Service permission

Example

Code Block
languagec#
var servicePermission = new ServicePermission

...


{

...


  ServiceId = 11,

...


  PermissionId = 100,

...


  EnglishComment = "Permission name en",

...


  FrenchComment = "Permission name fr"

...


};

...



var newServicePermission = await _servicePermissionsManager.Add(servicePermission);