Back to Apitable

.SpaceMainAdminApiApi

packages/api-client/SpaceMainAdminApiApi.md

1.13.0-beta.12.9 KB
Original Source

.SpaceMainAdminApiApi

All URIs are relative to http://backend/api/v1

MethodHTTP requestDescription
getMainAdminInfoGET /space/managerGet main admin info
replacePOST /space/changeManagerChange main admin

getMainAdminInfo

ResponseDataMainAdminInfoVo getMainAdminInfo()

Example

typescript
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));

Parameters

NameTypeDescriptionNotes
xSpaceId[string]space iddefaults to undefined

Return type

ResponseDataMainAdminInfoVo

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

replace

ResponseDataVoid replace(spaceMainAdminChangeOpRo, )

Example

typescript
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));

Parameters

NameTypeDescriptionNotes
spaceMainAdminChangeOpRoSpaceMainAdminChangeOpRo
xSpaceId[string]space iddefaults to undefined

Return type

ResponseDataVoid

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]