GrantTableAccess Request¶
-
POST/GrantTableAccess/¶ This post request grants access to table for token.
Note
You should specify one of parametrs full table data(database, folder, table) or a local table name.
If defined both - local table name will be ignored.
Example request:
POST /GrantTableAccess HTTP/1.1 Host: example.com Accept: application/json
- Request Headers
admin_token – Admin token.
- Query Parameters
user_token – Token to grant access for.
local_table_name – Local name of table.
database – part of full table path Local name of table database.
folder – part of full table path Folder name in a database where a table is located.
table – part of full table path Name of a table in folder.
Example response:
HTTP/1.1 200 OK Vary: Accept Content-Type: application/json [ { "status": "success" } ]
- Status Codes
200 OK – No errors.
409 Conflict – Token already exists.
403 Forbidden – Access denied. Check admin token in a header.
400 Bad Request – Bad request. Check request body.
404 Not Found – Error. Check error in a respsonse body.