Skip to main content
POST
/
v1
/
products
Create product
curl --request POST \
  --url https://api.cnap.tech/v1/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "PostgreSQL Managed",
  "sources": [
    {
      "chart": {
        "repo_url": "<string>",
        "target_revision": "<string>",
        "chart": "<string>",
        "path": "<string>"
      },
      "values": {},
      "metadata": {}
    }
  ],
  "cluster_ids": [
    "<string>"
  ],
  "stripe_price_ids": [
    "<string>"
  ],
  "settings": {
    "custom_image": "<string>",
    "custom_description": "<string>",
    "show_sources": true
  }
}
'
{
  "product_id": "<string>",
  "template_id": "<string>"
}

Authorizations

Authorization
string
header
required

Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://dash.cnap.tech/account/tokens

Body

application/json
name
string
required
Required string length: 2 - 32
Example:

"PostgreSQL Managed"

sources
object[]
required
Minimum array length: 1
cluster_ids
string[]
required

Cluster IDs to deploy to

Minimum array length: 1
stripe_price_ids
string[]
settings
object

Response

Product created

product_id
string
required
template_id
string
required