External Services

Change the database a project's apps read from a service

Changed on
put/external-services/{id}/projects/{project_id}/database

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idinteger required

External service ID

project_idinteger required

Project ID

Request body

custom_database_namestring nullable

The database every environment of the project reads, in custom mode.

database_provisioning_mode'project' | 'project_environment' | 'custom' required

project_environment (one database per environment), project (one for the whole project) or custom (the name below).

Example request

{
  "custom_database_name": "shop_prod"
}

Response

The link gives the project this database from its next deployment

custom_database_namestring nullable
database_provisioning_mode'project' | 'project_environment' | 'custom' required

Controls which logical database a deployment receives through a project-to-service link.

idinteger required

Example response

{
  "project": {
    "created_at": "2025-10-12T12:15:47.609192Z"
  },
  "service": {
    "topology": "standalone"
  }
}

Changes