Swap with another table
POST {{baseUrl}}/api/v2/databases/:database/schemas/:schema/tables/{{name}}:swap-with?ifExists=false&targetName=<string>
Swap with another table
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
ifExists | boolean | Query parameter that specifies how to handle the request for a resource that does not exist: |
true
: The endpoint does not throw an error if the resource does not exist. It returns a 200 success response, but does not take any action on the resource.false
: The endpoint throws an error if the resource doesn't exist. | |targetName
| string | | (Required) The fully-specified name of the target table to be swapped with. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"status":"\u003cstring\u003e"}