Skip to content

Latest commit

 

History

History
208 lines (133 loc) · 5.53 KB

File metadata and controls

208 lines (133 loc) · 5.53 KB

HyperstackApi.InviteApi

All URIs are relative to https://infrahub-api.nexgencloud.com/v1

Method HTTP request Description
acceptInvite GET /auth/invites/{id}/accept Accept Invite
deleteInvite DELETE /auth/invites/{id} Accept Invite
inviteUserToOrganization POST /auth/invites Invite User to Organization
listInvites GET /auth/invites List Invites

acceptInvite

CommonResponseModel acceptInvite(id)

Accept Invite

Accept an invitation for a user to join your organization.

Example

import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript';
let defaultClient = HyperstackApi.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

let apiInstance = new HyperstackApi.InviteApi();
let id = 56; // Number | 
apiInstance.acceptInvite(id).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
id Number

Return type

CommonResponseModel

Authorization

apiKey

HTTP request headers

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

deleteInvite

CommonResponseModel deleteInvite(id)

Accept Invite

Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, click here.

Example

import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript';
let defaultClient = HyperstackApi.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

let apiInstance = new HyperstackApi.InviteApi();
let id = 56; // Number | 
apiInstance.deleteInvite(id).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
id Number

Return type

CommonResponseModel

Authorization

apiKey

HTTP request headers

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

inviteUserToOrganization

InviteUserResponseModel inviteUserToOrganization(payload)

Invite User to Organization

Invites a user to join your organization. For additional information on inviting users to the organization, click here.

Example

import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript';
let defaultClient = HyperstackApi.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

let apiInstance = new HyperstackApi.InviteApi();
let payload = new HyperstackApi.InviteUserPayload(); // InviteUserPayload | 
apiInstance.inviteUserToOrganization(payload).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
payload InviteUserPayload

Return type

InviteUserResponseModel

Authorization

apiKey

HTTP request headers

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

listInvites

GetInvitesResponseModel listInvites()

List Invites

Retrieve a list of email invitations from your organization. For additional information on listing invited users, click here.

Example

import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript';
let defaultClient = HyperstackApi.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

let apiInstance = new HyperstackApi.InviteApi();
apiInstance.listInvites().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

GetInvitesResponseModel

Authorization

apiKey

HTTP request headers

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