Update database
PATCH
/v1/databases/{databaseId}How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| databaseId | path | string | Yes | Database ID |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| projectId | string | No | Project ID. |
| name | string | No | Human-readable name. |
| description | string | No | Human-readable description. |
| location | string | No | — |
| status | active | provisioning | error | No | Current lifecycle status. |
| metadata | object | No | Free-form metadata object. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Database updatedapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| database | object | No | — |
| database.id | string | No | Unique identifier. |
| database.userId | string | No | User ID. |
| database.projectId | string | No | Project ID. |
| database.name | string | No | Human-readable name. |
| database.description | string | No | Human-readable description. |
| database.provider | firestore | No | — |
| database.location | string | No | — |
| database.status | active | provisioning | error | No | Current lifecycle status. |
| database.firestoreNamespace | string | No | — |
| database.metadata | object | No | Free-form metadata object. |
| database.createdAt | string | No | ISO 8601 timestamp. |
| database.updatedAt | string | No | ISO 8601 timestamp. |