...
POST
/api/v1/users/{id}/permissions
Parameters
...
Parameter | Description | Parameter Type |
---|---|---|
Id |
...
The user's id |
...
path | ||
User Service Permission | User Service Permission object | request body |
Sample request body
Code Block | ||
---|---|---|
| ||
{ "PermissionId": 0, |
...
"ServiceId": 0, |
...
"OrganizationId": 0 |
...
} |
Returns
200 OK - User Service Permission
Example
Code Block | ||
---|---|---|
| ||
const int userId = 2757; |
...
const int serviceId = 2; |
...
const int permissionId = 3; |
...
const int organizationId = 9999; |
...
var newUserServicePermission = new UserServicePermission |
...
{ PermissionId = permissionId, UserId = userId, ServiceId = serviceId, OrganizationId = organizationId }; var userServicePermission = await _userServicePermissionManager.Add(newUserServicePermission); |
...
Code Block |
---|
TODO
|