All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
groupUsersAddUserToGroup | PUT /api/manage/v1/Groups/{id}/Users/{userId} | Add user to the group by identifier |
groupUsersGetUsersInGroup | GET /api/manage/v1/Groups/{id}/Users | Returns users in the group by identifier |
groupUsersLeaveFromGroup | DELETE /api/manage/v1/Groups/{id}/leave | Leave from the group |
groupUsersRemoveFromGroup | DELETE /api/manage/v1/Groups/{id}/Users/{userId} | Remove user from the group by identifier |
groupUsersAddUserToGroup(id, userId)
Add user to the group by identifier
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.GroupUsersApi();
let id = "id_example"; // String | Identifier of group
let userId = "userId_example"; // String | Identifier of user
apiInstance.groupUsersAddUserToGroup(id, userId).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of group | |
userId | String | Identifier of user |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
GroupUsersVM groupUsersGetUsersInGroup(id, opts)
Returns users in the group by identifier
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.GroupUsersApi();
let id = "id_example"; // String | Identifier of group
let opts = {
'skip': 0, // Number | how many to skip
'take': 10 // Number | how many to take
};
apiInstance.groupUsersGetUsersInGroup(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of group | |
skip | Number | how many to skip | [optional] [default to 0] |
take | Number | how many to take | [optional] [default to 10] |
- Content-Type: Not defined
- Accept: application/json
groupUsersLeaveFromGroup(id)
Leave from the group
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.GroupUsersApi();
let id = "id_example"; // String | Identifier of group
apiInstance.groupUsersLeaveFromGroup(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of group |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
groupUsersRemoveFromGroup(id, userId)
Remove user from the group by identifier
import FastreportCloudSdk from 'fastreport-cloud-sdk';
let defaultClient = FastreportCloudSdk.ApiClient.instance;
// Configure HTTP basic authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.username = 'YOUR USERNAME';
ApiKey.password = 'YOUR PASSWORD';
// Configure Bearer (JWT) access token for authorization: JWT
let JWT = defaultClient.authentications['JWT'];
JWT.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new FastreportCloudSdk.GroupUsersApi();
let id = "id_example"; // String | Identifier of group
let userId = "userId_example"; // String | Identifier of user
apiInstance.groupUsersRemoveFromGroup(id, userId).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | Identifier of group | |
userId | String | Identifier of user |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json