Back to Apitable

.SpaceApplyJoiningSpaceApiApi

packages/api-client/SpaceApplyJoiningSpaceApiApi.md

1.13.0-beta.12.8 KB
Original Source

.SpaceApplyJoiningSpaceApiApi

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

MethodHTTP requestDescription
applyPOST /space/apply/joinApplying to join the space
processPOST /space/apply/processProcess joining application

apply

ResponseDataVoid apply(spaceJoinApplyRo)

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .SpaceApplyJoiningSpaceApiApi(configuration);

let body:.SpaceApplyJoiningSpaceApiApiApplyRequest = {
  // SpaceJoinApplyRo
  spaceJoinApplyRo: {
    spaceId: "spczdmQDfBAn5",
  },
};

apiInstance.apply(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
spaceJoinApplyRoSpaceJoinApplyRo

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]

process

ResponseDataVoid process(spaceJoinProcessRo)

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .SpaceApplyJoiningSpaceApiApi(configuration);

let body:.SpaceApplyJoiningSpaceApiApiProcessRequest = {
  // SpaceJoinProcessRo
  spaceJoinProcessRo: {
    notifyId: 761263712638,
    agree: true,
  },
};

apiInstance.process(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
spaceJoinProcessRoSpaceJoinProcessRo

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]