GetInvites()
Get Invites
Description
Gets a list of invites for a service.
Package Details
Interface
IServiceInvitationManager
Syntax
await ServiceInvitationManager.GetInvites(int userId, int serviceId, int? organizationId = null);
Returns
Task<ICollection<Invite>>
API
GET
/api/v1/services/invites
Parameters
Parameter | Description | Parameter Type |
---|---|---|
userId | User's id | query string |
serviceId | Service id | query string |
organizationId | Organization id | query string |
Returns
On success, 200 Ok
When user is not found, 400 Bad Request
When user is a internal user, 400 Bad Request
When user Id or service Id is invalid, 400 Bad Request
On error, 400 Bad Request
On authorization error, 403 Forbidden
Example
const int userId = 123;
const int serviceId = 11;
const int organizationId = 100;
await ServiceInvitationManager.GetInvites(userId, serviceId, organizationId);