File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -460,6 +460,23 @@ AccessControl.prototype.ifOrganizationExists = function (orgName) {
460
460
return this . dispatch ( `${ this . baseURL } /private/organizations/${ UTILS . encodeURISegment ( orgName ) } ` , CONST . HEAD ) ;
461
461
} ;
462
462
463
+ /**
464
+ * -- TerminusX API ---
465
+ * IMPORTANT This does not work with the API-TOKEN.
466
+ * Create an organization
467
+ * @param {string } orgName - The organization name to create
468
+ * @return {Promise } A promise that returns the call response object, or an Error if rejected.
469
+ * @example
470
+ * accessControl.createOrganization("my_org_name").then(result=>{
471
+ * console.log(result)
472
+ * })
473
+ */
474
+ AccessControl . prototype . createOrganizationRemote = function ( orgName ) {
475
+ // maybe we have to review this
476
+ const payload = { organization : orgName } ;
477
+ return this . dispatch ( `${ this . baseURL } /private/organizations` , CONST . POST , payload ) ;
478
+ } ;
479
+
463
480
/**
464
481
* -- TerminusX API ---
465
482
* Get the pending invitations list.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @terminusdb/terminusdb-client" ,
3
- "version" : " 10.0.20 " ,
3
+ "version" : " 10.0.21 " ,
4
4
"description" : " TerminusDB client library" ,
5
5
"main" : " index.js" ,
6
6
"types" : " ./dist/typescript/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments