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

« Previous Version 5 Next »

Reactivates a user from a service.

Description
This method activates a user from a service.
Organization Id is optional.

Package Details
Interface
IServiceManager

Syntax
IServiceManager.Activate(int userId, int serviceId, int? organizationId = null)

API
[POST] /api/v1/services/{id}/activate-user"

Parameter:
int id: Service id
int UserId: User id
int organizationId: Organization Id (Optional)

Returns
200 OK

Example
int id = 2
int userId = 2757
organizationId = 5950

if (organizationId.HasValue)
{
await _serviceManager.Activate(userId, id, organizationId.Value);
}
else
{
await _serviceManager.Activate(userId, id);
}

  • No labels