SubscriptionInvites
SubscriptionInvites
GetInvites
Get list of invites in a subscription, the added users will be displayed in the list of users of the subscription, and these users will also have an active subscription.
Request
GET /api/manage/v1/Subscriptions/{subscriptionId}/invites
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*subscriptionId | string | Idenitifier of subscription |
Responses
Status Code | Description | Samples |
---|---|---|
200 | Succesfully added |
|
400 | The reqeust is wrong |
|
403 | You don't have rights for the operation |
|
404 | Subscription or user is not found |
|
500 | Exception thrown |
CreateInvite
Create invite to subscription
Request
POST /api/manage/v1/Subscriptions/{subscriptionId}/invite
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*subscriptionId | string | id |
|
createInviteVM | create VM |
Responses
Status Code | Description | Samples |
---|---|---|
200 | Successfully created |
|
400 | Request is wrong |
|
402 | subscription is outdated |
|
403 | Not enough permissions |
|
404 | there is no subscription with such id |
|
500 | exception caught |
DeleteInvite
Rename subscription
Request
DELETE /api/manage/v1/Subscriptions/{subscriptionId}/invite/{accesstoken}
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*subscriptionId | string | id |
|
*accesstoken | string | invite's token |
Responses
Status Code | Description | Samples |
---|---|---|
204 | Successfully deleted |
|
400 | Request is wrong |
|
402 | subscription is outdated |
|
403 | Not enough permissions |
|
404 | there is no subscription with such id |
|
500 | exception caught |
AcceptInvite
Add a user to the subscription using invite, the added users will be displayed in the list of users of the subscription, and these users will also have an active subscription.
Request
GET /api/manage/v1/Subscriptions/{subscriptionId}/invite/{accessToken}/accept
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*subscriptionId | string | Idenitifier of subscription |
|
*accessToken | string | access token of the subscription |
Responses
Status Code | Description | Samples |
---|---|---|
200 | Succesfully added |
|
400 | The reqeust is wrong |
|
403 | You don't have rights for the operation |
|
404 | Subscription or user is not found |
|
500 | Exception thrown |