SubscriptionUsers
SubscriptionUsers
AddUser
Add a user to the 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
PUT /api/manage/v1/Subscriptions/{subscriptionId}/users/{userId}
Parameters
| Name | Type | Value | Notes |
|---|---|---|---|
| *subscriptionId | string | Idenitifier of subscription |
|
| *userId | string | Idenitifier of user |
Responses
| Status Code | Description | Samples |
|---|---|---|
| 200 | Succesfully added |
|
| 400 | The reqeust is wrong |
|
| 403 | You don't have rights for the operation |
|
| 402 | subscription is outdated |
|
| 404 | Subscription or user is not found |
|
| 500 | Exception thrown |
RemoveUser
Delete a user from the 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
DELETE /api/manage/v1/Subscriptions/{subscriptionId}/users/{userId}
Parameters
| Name | Type | Value | Notes |
|---|---|---|---|
| *subscriptionId | string | Idenitifier of subscription |
|
| *userId | string | Idenitifier of user |
Responses
| Status Code | Description | Samples |
|---|---|---|
| 204 | Succesfully deleted |
|
| 400 | The reqeust is wrong |
|
| 403 | You don't have rights for the operation |
|
| 402 | subscription id outdated |
|
| 404 | Subscription or user is not found |
|
| 500 | Exception thrown |
LeaveSubscripiton
Allows user to leave subscription,.
Request
DELETE /api/manage/v1/Subscriptions/{subscriptionId}/leave
Parameters
| Name | Type | Value | Notes |
|---|---|---|---|
| *subscriptionId | string | Idenitifier of subscription |
Responses
| Status Code | Description | Samples |
|---|---|---|
| 204 | Succesfully deleted |
|
| 400 | The reqeust is wrong |
|
| 402 | subscription id outdated |
|
| 404 | Subscription or user is not found |
|
| 500 | Exception thrown |
GetUsers
Returns all users of subscription
Request
GET /api/manage/v1/Subscriptions/{subscriptionId}/users[?skip&take]
Parameters
| Name | Type | Value | Notes |
|---|---|---|---|
| *subscriptionId | string | Idenitifier of subscription |
|
| skip | integer | 0 | How many entities skip |
| take | integer | 10 | How many entities take |
Responses
| Status Code | Description | Samples |
|---|---|---|
| 200 | Succesfully returned |
|
| 400 | The reqeust is wrong |
|
| 403 | You don't have rights for the operation |
|
| 404 | Subscription is not found |
|
| 500 | Exception thrown |