---
title: "Register custom database pricing"
method: POST
path: "/marketplace/providers/databases"
---

# Register custom database pricing

`POST /marketplace/providers/databases`

Register your own managed database rates, keyed by engine, edition, deployment option, storage type and instance type alongside the usual provider, service and region.
An entry is upserted on the full natural key (provider, service, region, availability zone, usage type, engine, edition, deployment option, billing config, storage type, instance type, architecture and period billing hours), so re-posting with a new cost keeps its id; changing any key field mints a new one.
The returned id is what you attach with the `costgraph.ai/pricing-id.database` label or tag.

## Request body

- TypesCustomDatabasePriceRequest
  - `entries` SchemaDatabasePricingsRow[], required
    - `architecture` string
    - `availability_zone` string
    - `billing_config` string
    - `capacity_unit` string
    - `cost_per_capacity_unit` number
    - `cost_per_hour` number
    - `cost_per_io_request` number
    - `cost_per_iops_hour` number
    - `cost_per_storage_gb_hour` number
    - `cost_per_throughput_mbps_hour` number
    - `cost_per_vcpu_license_hour` number
    - `cpu_cores` number
    - `cpu_cores_cost_per_hour` number
    - `created_at` string
    - `currency` string
    - `deployment_option` string
    - `edition` string
    - `engine` string
    - `id` string
    - `instance_type` string
    - `max_iops` number
    - `max_storage_gb` number
    - `max_throughput_mbps` number
    - `min_iops` number
    - `min_storage_gb` number
    - `min_throughput_mbps` number
    - `native_cost_per_hour` number
    - `native_cost_per_storage_gb_hour` number
    - `period_billing_hours` number
    - `provider` string
    - `ram_gb` number
    - `ram_gb_cost_per_hour` number
    - `raw_pricing_data` object
    - `region` string
    - `service` string
    - `storage_type` string
    - `tags` object
    - `updated_at` string
    - `usage_type` string

## Response `200`

Pricing response for custom database pricing

- TypesCustomDatabasePricingResponse
  - `entries` SchemaDatabasePricingsRow[]
    - `architecture` string
    - `availability_zone` string
    - `billing_config` string
    - `capacity_unit` string
    - `cost_per_capacity_unit` number
    - `cost_per_hour` number
    - `cost_per_io_request` number
    - `cost_per_iops_hour` number
    - `cost_per_storage_gb_hour` number
    - `cost_per_throughput_mbps_hour` number
    - `cost_per_vcpu_license_hour` number
    - `cpu_cores` number
    - `cpu_cores_cost_per_hour` number
    - `created_at` string
    - `currency` string
    - `deployment_option` string
    - `edition` string
    - `engine` string
    - `id` string
    - `instance_type` string
    - `max_iops` number
    - `max_storage_gb` number
    - `max_throughput_mbps` number
    - `min_iops` number
    - `min_storage_gb` number
    - `min_throughput_mbps` number
    - `native_cost_per_hour` number
    - `native_cost_per_storage_gb_hour` number
    - `period_billing_hours` number
    - `provider` string
    - `ram_gb` number
    - `ram_gb_cost_per_hour` number
    - `raw_pricing_data` object
    - `region` string
    - `service` string
    - `storage_type` string
    - `tags` object
    - `updated_at` string
    - `usage_type` string
  - `status` 'Registered' | 'Deleted'

## Other responses

- `400` — Invalid request body
- `401` — Provider and organization do not match
- `500` — Internal server error

---

[API](https://skmtc.net/baselinehq/apis/costgraph-pricing-api.md) · [All operations](https://skmtc.net/baselinehq/apis/costgraph-pricing-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baselinehq/costgraph-pricing-api/revisions/118039137757/schema)
