Get databases

Gets all the databases that the authenticated user owns, or that have been shared with the authenticated user.

Request

GET https://www.activityinfo.org/resources/databases

Successful response

application/json

array[object]
databaseId string The globally-unique id of this database. required
label string The human-readable name of this database. required
description string A longer, optional description for this database. required
ownerId string The id of the user who owns this database. required
billingAccountId integer The id of the billing account to which this database belongs required
suspended boolean True if this database belongs to a billing account that has been suspended. required
publishedTemplate boolean True if this database has been published as a template. required

Error responses

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated

Example

curl -u anything:YOUR_API_TOKEN \
  https://www.activityinfo.org/resources/databases

The above command returns JSON structured like this:

[
  {
    "databaseId": "ck8oykh8m5",
    "label": "2018 IRQ Internally Displaced Persons (IDP)",
    "description": "",
    "ownerId": "432201",
    "billingAccountId": 1025232,
    "suspended": false,
    "publishedTemplate": false
  },
  {
    "databaseId": "cqlfv4qlh1x8yayk",
    "label": "COVID-19 Response",
    "description": "",
    "ownerId": "432201",
    "billingAccountId": 1025232,
    "suspended": false,
    "publishedTemplate": false
  }
]
Next item
Get form geo json