All URIs are relative to https://koding.com/remote.api
| Method | HTTP request | Description |
|---|---|---|
| accept | POST /JInvitation.accept/{id} | |
| byCode | POST /JInvitation.byCode | |
| create | POST /JInvitation.create | |
| remove | POST /JInvitation.remove/{id} | |
| revokeInvitation | POST /JInvitation.revokeInvitation | |
| search | POST /JInvitation.search | |
| sendInvitationByCode | POST /JInvitation.sendInvitationByCode | |
| some | POST /JInvitation.some |
DefaultResponse accept(id, body)
Method JInvitation.accept
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JInvitationApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.accept(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse byCode(body)
byCode fetches an invitation by its code
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JInvitationApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.byCode(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse create(body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JInvitationApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.create(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse remove(id, body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JInvitationApi();
var id = "id_example"; // String | Mongo ID of target instance
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.remove(id, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Mongo ID of target instance | |
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse revokeInvitation(body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JInvitationApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.revokeInvitation(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse search(body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JInvitationApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.search(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse sendInvitationByCode(body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JInvitationApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.sendInvitationByCode(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined
DefaultResponse some(body)
var KodingApi = require('koding-api');
var defaultClient = KodingApi.ApiClient.default;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
var apiInstance = new KodingApi.JInvitationApi();
var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request
apiInstance.some(body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | DefaultSelector | body of the request |
- Content-Type: application/json
- Accept: Not defined