Set the enrollment key for a specified user and service
Description
Set the enrollment key for a specified user and service.
Package Details
Interface
IAccountManager
Syntax
_accountManager.SetActivationKey(int userId, int serviceId, string enrollmentKey, [int? organizationId = null])
Returns
Task (void)
API
[PUT] /api/v1/account/set-activation-key
userId: [Integer] User id.
serviceId: [Integer] Service id
enrollmentKey : [string] Enrollment key
organizationId: [Integer] Organization id
Returns
HTTP 200 OK if successful, 401 if unauthorized, 400 otherwise.
Example
await _accountManager.SetActivationKey( userId, serviceId, enrollmentKey);