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

await platic.tools.databases.pause("db_123");

Path parameters

ParameterTypeDescriptionRequired
databaseIdstringThe 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

Statusdetails.codeWhen it happens
403FORBIDDEN or INSUFFICIENT_SCOPEThe person behind the token does not have access to Integrations, or the token does not have write permission
404NOT_FOUNDThere 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.