Skip to content

The extensions installed in the database, and its id (any token).

POST
/datanotes/extensions/
curl --request POST \
--url https://example.com/datanotes/extensions/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'
Media typeapplication/json
object

Example generated

{}

Done.

Media typeapplication/json
object
database_id
string | null
extensions
Array<object>

An installed extension as the registry keeps it (datanotes extension install writes it).

object
name
required

2 to 40 lowercase letters, digits or -, starting with a letter.

string
version
required
string
description
required
string
api
required

The module API version the extension’s entry file exports.

integer
source
required
object
kind
required
string
Allowed values: git local
url

Git: the URL as given.

string
ref

Git: the tag or commit id given (or the newest tag chosen).

string
path

Local: the absolute folder, with / separators.

string
commit
required

The git commit id (40 hex), or local-<12 hex> for a folder.

string
manifest_sha256
required
string
entry_sha256
required
string
token
required

The extension’s named token: ext-.

string
tables
required

Each role of the manifest, bound to a qualified table.

object
key
additional properties
object
table
required

The qualified table bound to the role.

string
owned
required

True for a role the extension owns.

boolean
columns

Dependency roles: manifest column to the user’s column, only where they differ.

object
key
additional properties
string
absent

Dependency roles: optional manifest columns the bound table does not have.

Array<string>
tools
required
Array<string>
write
required

The token’s write patterns (qualified table names).

Array<string>
migration_id
required

The batch that brought the database from previous to this record.

string | null
installed_at
required
string
updated_at
required
string
previous
required
Any of:
object recursive

Example

{
"extensions": [
{
"source": {
"kind": "git"
}
}
]
}

Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

Missing or wrong bearer token.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}

Unexpected error.

Media typeapplication/json
object
error
required

What went wrong, for a person or an agent.

string

Example generated

{
"error": "example"
}