From c36a47888d050cbed38bd28beda894b331a813df Mon Sep 17 00:00:00 2001 From: "context7[bot]" <236830434+context7[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 02:03:51 +0000 Subject: [PATCH 1/3] docs: add missing Database fields to Developer API schema --- devops/developer-api/openapi.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/devops/developer-api/openapi.yaml b/devops/developer-api/openapi.yaml index b86b8de91..07732b97f 100644 --- a/devops/developer-api/openapi.yaml +++ b/devops/developer-api/openapi.yaml @@ -1745,6 +1745,10 @@ components: type: string description: Name of the database example: MyRedis + database_type: + type: string + description: Type of the database, either Regional or Global + example: Regional region: type: string description: The region where database is hosted @@ -1772,10 +1776,24 @@ components: type: string description: Endpoint identifier or hostname of the database (may be a slug like "beloved-stallion-58500" or a full host) example: beloved-stallion-58500 + rest_token: + type: string + description: REST token for the database. Pass the `credentials=hide` query parameter to Get Database to omit it from the response. + read_only_rest_token: + type: string + description: Read-only REST token for the database. Pass the `credentials=hide` query parameter to Get Database to omit it from the response. + password: + type: string + description: Password of the database. Pass the `credentials=hide` query parameter to Get Database to omit it from the response. tls: type: boolean description: TLS/SSL is enabled or not example: true + db_daily_bandwidth_limit: + type: integer + description: Daily bandwidth limit for the database (in bytes) + format: int64 + example: 10737418240 db_max_clients: type: integer description: Max number of concurrent clients can be opened on this database currently @@ -1934,6 +1952,10 @@ components: type: string description: Owner identifier of the database (may be email or marketplace-scoped email) example: "example@upstash.com" + user_email: + type: string + description: User email for the database + example: "example@upstash.com" daily_backup_enabled: type: boolean description: Whether daily backup is enabled From d99a035523a9a4ce248d3dfd4fbbd1d87e6d7ae6 Mon Sep 17 00:00:00 2001 From: enesgules Date: Thu, 22 Oct 2026 14:04:19 +0300 Subject: [PATCH 2/3] docs: correct the new Database fields --- devops/developer-api/openapi.yaml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/devops/developer-api/openapi.yaml b/devops/developer-api/openapi.yaml index 07732b97f..81810eaa9 100644 --- a/devops/developer-api/openapi.yaml +++ b/devops/developer-api/openapi.yaml @@ -1747,8 +1747,8 @@ components: example: MyRedis database_type: type: string - description: Type of the database, either Regional or Global - example: Regional + description: Pricing model of the database, one of `free`, `Pay as You Go` or `Enterprise` + example: Pay as You Go region: type: string description: The region where database is hosted @@ -1778,22 +1778,21 @@ components: example: beloved-stallion-58500 rest_token: type: string - description: REST token for the database. Pass the `credentials=hide` query parameter to Get Database to omit it from the response. + description: REST token for the database. Omitted when you pass the `credentials=hide` query parameter to Get Database, or when the API key or your team role is read-only. read_only_rest_token: type: string description: Read-only REST token for the database. Pass the `credentials=hide` query parameter to Get Database to omit it from the response. password: type: string - description: Password of the database. Pass the `credentials=hide` query parameter to Get Database to omit it from the response. + description: Password of the database. Omitted when you pass the `credentials=hide` query parameter to Get Database, or when the API key or your team role is read-only. tls: type: boolean description: TLS/SSL is enabled or not example: true db_daily_bandwidth_limit: type: integer - description: Daily bandwidth limit for the database (in bytes) + description: Daily bandwidth limit for the database (in bytes). The response can omit this field. format: int64 - example: 10737418240 db_max_clients: type: integer description: Max number of concurrent clients can be opened on this database currently @@ -1948,13 +1947,9 @@ components: type: integer description: Replica factor of the database example: 5 - customer_id: - type: string - description: Owner identifier of the database (may be email or marketplace-scoped email) - example: "example@upstash.com" user_email: type: string - description: User email for the database + description: Owner identifier of the database (may be email or marketplace-scoped email) example: "example@upstash.com" daily_backup_enabled: type: boolean From c09397664355b31cd7b4bfc75b4cd0997c4bf20a Mon Sep 17 00:00:00 2001 From: enesgules Date: Thu, 22 Oct 2026 14:18:02 +0300 Subject: [PATCH 3/3] docs: credential protection also hides the database credentials --- devops/developer-api/openapi.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devops/developer-api/openapi.yaml b/devops/developer-api/openapi.yaml index 81810eaa9..c55084282 100644 --- a/devops/developer-api/openapi.yaml +++ b/devops/developer-api/openapi.yaml @@ -1778,13 +1778,13 @@ components: example: beloved-stallion-58500 rest_token: type: string - description: REST token for the database. Omitted when you pass the `credentials=hide` query parameter to Get Database, or when the API key or your team role is read-only. + description: REST token for the database. Omitted when credential protection is on, when you pass the `credentials=hide` query parameter to Get Database, or when the API key or your team role is read-only. read_only_rest_token: type: string - description: Read-only REST token for the database. Pass the `credentials=hide` query parameter to Get Database to omit it from the response. + description: Read-only REST token for the database. Omitted when credential protection is on, or when you pass the `credentials=hide` query parameter to Get Database. password: type: string - description: Password of the database. Omitted when you pass the `credentials=hide` query parameter to Get Database, or when the API key or your team role is read-only. + description: Password of the database. Omitted when credential protection is on, when you pass the `credentials=hide` query parameter to Get Database, or when the API key or your team role is read-only. tls: type: boolean description: TLS/SSL is enabled or not