Pause a database
SDK platic.tools.databases.pause()
Set the connection to paused. No agent sees its tools, but the settings, password, and agent connections are kept. Enable it to use them again.
Example
curl -X POST https://api.platic.ai/v1/tools/databases/$DB_ID/pause \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.tools.databases.pause("db_123"); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
databaseId | string | The id of the connection | ✓ |
It has no body.
Response
200 OK. data has the connection with the fields in get a database.
{
"status": "success",
"message": "Connection paused: agents no longer see its tools",
"data": {
"id": "Xb2mQe7LtR9sKd4fHw1N",
"name": "store",
"status": "paused",
"nextStep": "Paused: no agent sees its tools. Turn it on again with POST /v1/tools/databases/Xb2mQe7LtR9sKd4fHw1N/enable."
}
} The example omits some fields of the connection.
Errors
| Status | details.code | When it happens |
|---|---|---|
403 | FORBIDDEN or INSUFFICIENT_SCOPE | The person behind the token does not have access to Integrations, or the token does not have write permission |
404 | NOT_FOUND | There is no connection with that id in the workspace |
Notes
- Pausing a connection that is already paused changes nothing.
- To take the tools away from a single agent, disconnect them from that agent.