packages/api-client/SpaceMainAdminApiApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| getMainAdminInfo | GET /space/manager | Get main admin info |
| replace | POST /space/changeManager | Change main admin |
ResponseDataMainAdminInfoVo getMainAdminInfo()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .SpaceMainAdminApiApi(configuration);
let body:.SpaceMainAdminApiApiGetMainAdminInfoRequest = {
// string | space id
xSpaceId: "spcyQkKp9XJEl",
};
apiInstance.getMainAdminInfo(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| xSpaceId | [string] | space id | defaults to undefined |
ResponseDataMainAdminInfoVo
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataVoid replace(spaceMainAdminChangeOpRo, )
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .SpaceMainAdminApiApi(configuration);
let body:.SpaceMainAdminApiApiReplaceRequest = {
// SpaceMainAdminChangeOpRo
spaceMainAdminChangeOpRo: {
memberId: 123456,
},
// string | space id
xSpaceId: "spcyQkKp9XJEl",
};
apiInstance.replace(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| spaceMainAdminChangeOpRo | SpaceMainAdminChangeOpRo | ||
| xSpaceId | [string] | space id | defaults to undefined |
ResponseDataVoid
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]