# Databases

# Creating A Database

  1. Navigate to a workspace and select DB.
  2. Select Add a DB.
  3. Enter a display name for the database. Ex: films.
  4. Select Create.

Create Database Screenshot
Create Database Screenshot

About Curl
../../curl/

curl -XPOST 'https://db.dashkite.io/db' \
    -H "Authorization: {api-key}" \
    -H 'Content-Type: application/json' \
    -d '{ "name": "{name}" }'  
Parameter Description
api-key Your API key, which allows you to access your databases. You can get your API key from the Web application.
name The database display name.

# Listing Databases

  1. Navigate to a workspace and select DB.
  2. A list of databases for the given workspace will be shown.

List Databases Screenshot
List Databases Screenshot

# Getting A Database

  1. Navigate to a workspace and select DB.
  2. Select a database to view its details.

Get Database Screenshot
Get Database Screenshot

curl -XGET "https://db.dashkite.io/db/{db}" \
    -H "Authorization: {api-key}" \
    -H 'Accept: application/json'
Parameter Description
db The database address. You can get the database address from the Web app or from the API response when you create the database.
api-key Your API key, which allows you to access your databases. You can get your API key from the Web application.
name The database display name.

# Getting The Database API Key

  1. Navigate to a workspace and select DB.
  2. Select the database for which you want a credential.
  3. Under API Key, select Copy Key.

Get Database API Key Screenshot
Get Database API Key Screenshot

# Getting The Database Address

  1. Navigate to a workspace and select DB.
  2. Select a database.
  3. Under Metadata, click Copy Address.

Get Database Address Screenshot
Get Database Address Screenshot

The database address is contained in the JSON response when you get a database.

# Updating A Database

  1. Navigate to a workspace and select DB.
  2. Select the database you want to update.
  3. Select Edit Database.
  4. Update the display name for the database. Ex: films.
  5. Select Save.

Update Database Screenshot
Update Database Screenshot

curl -XPUT "https://db.dashkite.io/db/{db}" \
    -H "Authorization: {api-key}" \
    -H 'Content-Type: application/json' \
    -d '{ "name": "{name}" }'  
Parameter Description
db The database address. You can get the database address from the Web app or from the API response when you create the database.
api-key Your API key, which allows you to access your databases. You can get your API key from the Web application.
name The database display name.

# Removing A Database

  1. Navigate to a workspace and select DB.
  2. Select the database you want to update.
  3. Select Edit Database.
  4. Select Delete Database.
  5. Select Delete Database again to confirm.

Remove Database Screenshot
Remove Database Screenshot

Parameters you supply are delimited by angle brackets. Example: {db}.

curl -XDELETE "https://db.dashkite.io/db/{db}" \
    -H "Authorization: {api-key}"
Parameter Description
db The database address. You can get the database address from the Web app or from the API response when you create the database.
api-key Your API key, which allows you to access your databases. You can get your API key from the Web application.