AddDatabase Request

PUT /Database

This put request adds a new database(includes tables/folders) to API.

Note

RestBase has the same read privileges as an account.

Example request:

PUT /Database HTTP/1.1
Host: example.com
Accept: application/json
Request Headers
  • admin_token – Admin token.

Query Parameters
  • local_database_name – Local database name in RestBase. This name uses in all full paths to a database.

  • ip – Database address **without port*.

  • port – Database port.

  • database – Database name on server.

  • username – Database username.

  • password – Password of the user from a username field.

  • base_type – Database type. Supported values: ‘postgres’

Example response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json

[
  {
      "status": "success",
      "local_name": "some-local-database-name"
  }
]
Status Codes