Skip to content

Commit 4bcce29

Browse files
Merge pull request #122 from terminusdb/getDatabases
change accesControl docs
2 parents e1f3dee + 3eaeed1 commit 4bcce29

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/api/accessControl.js.md

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Get all the system database roles types.
7070
### createOrganization
7171
#### accessControl.createOrganization(orgName) ⇒ <code>Promise</code>
7272
Any user can create their own organization.
73+
IMPORTANT This does not work with the API-TOKEN.
7374

7475
**Returns**: <code>Promise</code> - A promise that returns the call response object, or an Error if rejected.
7576

@@ -87,6 +88,7 @@ accessControl.createOrganization("my_org_name").then(result=>{
8788
### ifOrganizationExists
8889
#### accessControl.ifOrganizationExists(orgName) ⇒ <code>Promise</code>
8990
Check if the organization exists. it is a Head call .
91+
IMPORTANT This does not work with the API-TOKEN.
9092

9193
**Returns**: <code>Promise</code> - A promise that returns the call status object, 200: if the organization exists and 404: if the organization does not exist
9294

lib/accessControl.js

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ AccessControl.prototype.getAccessRoles = function() {
115115

116116
/**
117117
* Any user can create their own organization.
118+
* IMPORTANT This does not work with the API-TOKEN.
118119
* @param {string} orgName - The organization name to create
119120
* @return {Promise} A promise that returns the call response object, or an Error if rejected.
120121
* @example
@@ -141,6 +142,7 @@ AccessControl.prototype.createOrganization = function(orgName) {
141142

142143
/**
143144
* Check if the organization exists. it is a Head call .
145+
* IMPORTANT This does not work with the API-TOKEN.
144146
* @param {string} orgName - The organization name to check if exists.
145147
* @return {Promise} A promise that returns the call status object, 200: if the organization exists and 404: if the organization does not exist
146148
*/

0 commit comments

Comments
 (0)