Portabase Logo
Portabase DashboardAPIDatabases

Attach the database to a project, or detach it (projectId: null)

PATCH
/databases/{id}

Authorization

apiKeyAuth
headerx-api-key<token>

API key generated from the Portabase dashboard. Pass as the x-api-key header.

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
projectId*|

Target project id to attach to, or null to detach

Formatuuid

Response Body

Updated database

application/json
  1. response
data?unknown
Example Request
curl -X PATCH 'https://portabase.example.com/api/v1/databases/123e4567-e89b-12d3-a456-426614174000' \  -H 'Content-Type: application/json' \  -d '{  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8"}'
Example Response
{  "data": null}