workspace

import a PostgreSQL database from source to target via pg_dump

post/w/{workspace}/workspaces/import_pg_database

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/w/{workspace}/workspaces/import_pg_database
  • Auth: one of:
    • HTTP bearer
    • API key in cookie token

Path parameters

workspacestring required

Request body

sourcestring required

Source database: 'datatable://name' or '$res:path'

targetstring required

Target database: 'datatable://name' or '$res:path'

target_dbname_overridestring

Override the target database name

fork_behavior'schema_only' | 'schema_and_data' | 'keep_original' required

Response

status

Changes

No recorded changes to this operation across all 297 revisions of this API.