Data API базы: сайты
data_api_originsSites allowed to call the database from a browser: list, add, remove.
Addresses of the connected projects and their branches are allowed
automatically — do not add them. An added site opens no data by itself:
what can be read and written is decided by access levels. Adding and
removing need the person's consent; a removed site is refused on every
request. Needs a token with the admin scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | For add and remove: the site origin with scheme, `https://shop.example`. | |
| note | No | For add: why the site was added. | |
| action | No | `list` — addresses of the database's projects and the manually added ones; `add` — allow a site; `remove` — remove a site. | list |
| database | No | The database: name, slug or id. Without it — the organization's only database with the Data API enabled. | |
| confirmed | No | true — the person has already agreed in the chat after seeing what will change. A client with forms does not need it: the server asks the person itself. Never set it without the person's explicit consent. | |
| organization | No | Organization slug. Without it — the only one, or the personal one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sites | No | ||
| action | Yes | ||
| changed | No | ||
| database | Yes | ||
| next_action | Yes | ||
| organization | Yes |