Portabase Logo
Portabase DashboardAPIDatabases

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

PATCH
/databases/{id}

Authorization

apiKeyAuth
x-api-key<token>

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

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

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