Ownkube · Schema

UpdateDeploymentBody

CloudPlatformDeploymentDeveloper ToolsOpen Source

Properties

Name Type Description
appConfig object New config for a web/worker deployment.
databaseConfig object New config for a database deployment.
cacheConfig object New config for a cache deployment.
jobConfig object New config for a job deployment.
note string Optional revision note.
sendSsoInvites boolean Email a sign-on invite to newly added allow-list addresses.
View JSON Schema on GitHub

JSON Schema

ownkube-io-update-deployment-body-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ownkube-io/json-schema/ownkube-io-update-deployment-body-schema.json",
  "title": "UpdateDeploymentBody",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ownkube-io-openapi.json#/components/schemas/UpdateDeploymentBody",
  "type": "object",
  "properties": {
    "appConfig": {
      "type": "object",
      "properties": {
        "repository": {
          "type": "string",
          "minLength": 1,
          "description": "Image repository to run, e.g. nginx or ghcr.io/org/app. Omit to keep the current image (always kept for an Ownkube build)."
        },
        "tag": {
          "type": "string",
          "minLength": 1,
          "description": "Image tag to run. Omit to keep the current tag (always kept for an Ownkube build)."
        },
        "port": {
          "type": "integer",
          "minimum": 1,
          "maximum": 65535
        },
        "replicas": {
          "type": "integer",
          "minimum": 0,
          "maximum": 20,
          "default": 1,
          "description": "Copies running at once; 0 stops the app. On Ownkube Compute this is the fixed count (each copy is sized automatically), capped by your plan."
        },
        "env": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "secret": {
                "type": "boolean"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "value"
            ]
          }
        },
        "startCommand": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "public": {
          "type": "boolean",
          "default": false
        },
        "auth": {
          "type": "object",
          "properties": {
            "basicAuth": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean",
                  "default": false
                },
                "username": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255,
                  "pattern": "^[^:\\s]+$"
                },
                "password": {
                  "type": "string",
                  "maxLength": 255
                }
              },
              "required": [
                "username"
              ]
            },
            "oauth": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean",
                  "default": false
                },
                "provider": {
                  "type": "string",
                  "enum": [
                    "google"
                  ],
                  "default": "google"
                },
                "allowedDomains": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253
                  },
                  "maxItems": 50
                },
                "allowedEmails": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 320,
                    "format": "email"
                  },
                  "maxItems": 200
                }
              }
            }
          }
        },
        "healthCheck": {
          "type": "object",
          "properties": {
            "startup": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean",
                  "default": false
                },
                "path": {
                  "type": "string",
                  "minLength": 1
                },
                "port": {
                  "type": "string"
                },
                "periodSeconds": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 300
                },
                "timeoutSeconds": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 60
                },
                "failureThreshold": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 30
                },
                "initialDelaySeconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 300
                }
              },
              "required": [
                "path"
              ]
            },
            "liveness": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean",
                  "default": false
                },
                "path": {
                  "type": "string",
                  "minLength": 1
                },
                "port": {
                  "type": "string"
                },
                "periodSeconds": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 300
                },
                "timeoutSeconds": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 60
                },
                "failureThreshold": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 30
                },
                "initialDelaySeconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 300
                }
              },
              "required": [
                "path"
              ]
            },
            "readiness": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean",
                  "default": false
                },
                "path": {
                  "type": "string",
                  "minLength": 1
                },
                "port": {
                  "type": "string"
                },
                "periodSeconds": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 300
                },
                "timeoutSeconds": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 60
                },
                "failureThreshold": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 30
                },
                "initialDelaySeconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 300
                }
              },
              "required": [
                "path"
              ]
            }
          }
        },
        "resources": {
          "type": "object",
          "properties": {
            "requests": {
              "type": "object",
              "properties": {
                "cpu": {
                  "type": "string",
                  "minLength": 1
                },
                "memory": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "cpu",
                "memory"
              ],
              "description": "CPU and memory each replica is guaranteed. Settable only on your own cluster: on Ownkube Compute, Ownkube sets the requests and ignores any sent."
            },
            "limits": {
              "type": "object",
              "properties": {
                "cpu": {
                  "type": "string",
                  "minLength": 1
                },
                "memory": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "cpu",
                "memory"
              ],
              "description": "CPU and memory each replica may use. On a metered Ownkube Compute app this is how you size it, up to the largest box; a reserved app, database or cache is sized by its box (skuId) instead."
            }
          },
          "required": [
            "requests",
            "limits"
          ],
          "description": "Per-replica CPU and memory. On Ownkube Compute, a metered app sets limits only (Ownkube sets the requests); a reserved app, database or cache is sized by its box, so change skuId to resize. Requests and limits are both settable only on your own cluster."
        },
        "autoscaling": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "default": false
            },
            "minReplicas": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 1
            },
            "maxReplicas": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 3
            },
            "targetCPUUtilizationPercentage": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "targetMemoryUtilizationPercentage": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          "description": "Your own cluster only. Adds copies under CPU or memory load, between minReplicas and maxReplicas. Refused on Ownkube Compute; set replicas there instead."
        },
        "scaleToZero": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "default": false
            },
            "scaledownPeriod": {
              "type": "integer",
              "minimum": 30,
              "maximum": 3600
            }
          }
        },
        "maintenance": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "default": false
            },
            "message": {
              "type": "string",
              "maxLength": 200
            }
          }
        },
        "targeting": {
          "type": "object",
          "properties": {
            "nodeSelector": {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "maxLength": 63
              }
            },
            "tolerations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253
                  },
                  "value": {
                    "type": "string",
                    "maxLength": 63
                  },
                  "effect": {
                    "type": "string",
                    "enum": [
                      "NoSchedule",
                      "PreferNoSchedule",
                      "NoExecute"
                    ]
                  }
                },
                "required": [
                  "key",
                  "effect"
                ]
              },
              "maxItems": 16
            }
          }
        },
        "billingMode": {
          "type": "string",
          "enum": [
            "metered",
            "reserved"
          ],
          "description": "Ownkube Compute only. metered (the default) bills measured CPU and memory; size it with resources.limits. reserved bills a flat box price per replica-hour and is sized by the box, so change skuId to resize. Ignored on your own cluster."
        },
        "skuId": {
          "type": "string",
          "description": "Box id for billingMode reserved (a Spark box, e.g. spark-4). Required with reserved, rejected otherwise. Change it to resize a reserved app."
        }
      },
      "required": [
        "port"
      ],
      "description": "New config for a web/worker deployment."
    },
    "databaseConfig": {
      "type": "object",
      "properties": {
        "engine": {
          "type": "string",
          "enum": [
            "postgres",
            "mongodb"
          ]
        },
        "version": {
          "type": "string",
          "enum": [
            "17",
            "18"
          ]
        },
        "instances": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10,
          "default": 1
        },
        "billingMode": {
          "type": "string",
          "enum": [
            "metered",
            "reserved"
          ],
          "description": "Ownkube Compute only, and always reserved: the database runs as a box (skuId) that sets its CPU and memory. Ignored on your own cluster."
        },
        "skuId": {
          "type": "string",
          "description": "Database box id from list_boxes (e.g. db-2). Required on Ownkube Compute; change it to resize the database."
        },
        "bootstrap": {
          "type": "object",
          "properties": {
            "database": {
              "type": "string",
              "minLength": 1,
              "maxLength": 63
            },
            "owner": {
              "type": "string",
              "minLength": 1,
              "maxLength": 63
            },
            "postInitSQL": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "database",
            "owner"
          ]
        },
        "storage": {
          "type": "object",
          "properties": {
            "size": {
              "type": "string",
              "minLength": 1
            },
            "storageClass": {
              "type": "string",
              "minLength": 1,
              "default": "gp3"
            }
          },
          "required": [
            "size"
          ]
        },
        "public": {
          "type": "boolean"
        },
        "scaleToZero": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "default": false
            },
            "scaledownPeriod": {
              "type": "integer",
              "minimum": 30,
              "maximum": 3600
            }
          }
        },
        "resources": {
          "type": "object",
          "properties": {
            "requests": {
              "type": "object",
              "properties": {
                "cpu": {
                  "type": "string",
                  "minLength": 1
                },
                "memory": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "cpu",
                "memory"
              ],
              "description": "CPU and memory each replica is guaranteed. Settable only on your own cluster: on Ownkube Compute, Ownkube sets the requests and ignores any sent."
            },
            "limits": {
              "type": "object",
              "properties": {
                "cpu": {
                  "type": "string",
                  "minLength": 1
                },
                "memory": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "cpu",
                "memory"
              ],
              "description": "CPU and memory each replica may use. On a metered Ownkube Compute app this is how you size it, up to the largest box; a reserved app, database or cache is sized by its box (skuId) instead."
            }
          },
          "required": [
            "requests",
            "limits"
          ],
          "description": "Per-replica CPU and memory. On Ownkube Compute, a metered app sets limits only (Ownkube sets the requests); a reserved app, database or cache is sized by its box, so change skuId to resize. Requests and limits are both settable only on your own cluster."
        },
        "pooler": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "default": false
            },
            "instances": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10
            },
            "type": {
              "type": "string",
              "enum": [
                "rw",
                "ro"
              ]
            },
            "mode": {
              "type": "string",
              "enum": [
                "session",
                "transaction"
              ]
            },
            "parameters": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        },
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "extensions": {
          "type": "object",
          "properties": {
            "vector": {
              "type": "boolean"
            },
            "pg_trgm": {
              "type": "boolean"
            },
            "unaccent": {
              "type": "boolean"
            },
            "fuzzystrmatch": {
              "type": "boolean"
            },
            "postgis": {
              "type": "boolean"
            },
            "citext": {
              "type": "boolean"
            },
            "hstore": {
              "type": "boolean"
            },
            "btree_gin": {
              "type": "boolean"
            },
            "btree_gist": {
              "type": "boolean"
            },
            "pgcrypto": {
              "type": "boolean"
            },
            "uuid-ossp": {
              "type": "boolean"
            },
            "pg_cron": {
              "type": "boolean"
            },
            "pgmq": {
              "type": "boolean"
            },
            "pg_partman": {
              "type": "boolean"
            },
            "pg_duckdb": {
              "type": "boolean"
            },
            "pg_ivm": {
              "type": "boolean"
            },
            "hll": {
              "type": "boolean"
            },
            "tdigest": {
              "type": "boolean"
            },
            "pg_stat_statements": {
              "type": "boolean"
            }
          }
        },
        "pgHba": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "monitoring": {
          "type": "object",
          "properties": {
            "enablePodMonitor": {
              "type": "boolean"
            }
          },
          "required": [
            "enablePodMonitor"
          ]
        },
        "backup": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "enabledAt": {
              "type": "string"
            },
            "barmanObjectStore": {
              "type": "object",
              "additionalProperties": {
                "nullable": true
              }
            },
            "retentionPolicy": {
              "type": "string"
            },
            "restore": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "targetTime": {
                  "type": "string"
                },
                "reinitialize": {
                  "type": "boolean"
                }
              },
              "required": [
                "enabled"
              ]
            }
          },
          "required": [
            "enabled"
          ]
        },
        "scheduledBackup": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "schedule": {
              "type": "string",
              "minLength": 1
            },
            "backupOwnerReference": {
              "type": "string"
            },
            "immediate": {
              "type": "boolean"
            }
          },
          "required": [
            "enabled",
            "schedule"
          ]
        }
      },
      "required": [
        "engine",
        "version",
        "bootstrap",
        "storage"
      ],
      "description": "New config for a database deployment."
    },
    "cacheConfig": {
      "type": "object",
      "properties": {
        "engine": {
          "type": "string",
          "enum": [
            "valkey"
          ]
        },
        "version": {
          "type": "string",
          "enum": [
            "9.1",
            "8.1"
          ]
        },
        "billingMode": {
          "type": "string",
          "enum": [
            "metered",
            "reserved"
          ],
          "description": "Ownkube Compute only, and always reserved: the cache runs as a box (skuId) that sets its CPU and memory. Ignored on your own cluster."
        },
        "skuId": {
          "type": "string",
          "description": "Cache box id from list_boxes (e.g. cache-1). Required on Ownkube Compute; change it to resize the cache."
        },
        "maxmemory": {
          "type": "string",
          "minLength": 1
        },
        "maxmemoryPolicy": {
          "type": "string",
          "enum": [
            "noeviction",
            "allkeys-lru",
            "allkeys-lfu",
            "volatile-lru",
            "volatile-lfu",
            "allkeys-random",
            "volatile-random",
            "volatile-ttl"
          ]
        },
        "persistence": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "size": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "enabled",
            "size"
          ]
        },
        "public": {
          "type": "boolean"
        },
        "scaleToZero": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "default": false
            },
            "scaledownPeriod": {
              "type": "integer",
              "minimum": 30,
              "maximum": 3600
            }
          }
        },
        "resources": {
          "type": "object",
          "properties": {
            "requests": {
              "type": "object",
              "properties": {
                "cpu": {
                  "type": "string",
                  "minLength": 1
                },
                "memory": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "cpu",
                "memory"
              ],
              "description": "CPU and memory each replica is guaranteed. Settable only on your own cluster: on Ownkube Compute, Ownkube sets the requests and ignores any sent."
            },
            "limits": {
              "type": "object",
              "properties": {
                "cpu": {
                  "type": "string",
                  "minLength": 1
                },
                "memory": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "cpu",
                "memory"
              ],
              "description": "CPU and memory each replica may use. On a metered Ownkube Compute app this is how you size it, up to the largest box; a reserved app, database or cache is sized by its box (skuId) instead."
            }
          },
          "required": [
            "requests",
            "limits"
          ],
          "description": "Per-replica CPU and memory. On Ownkube Compute, a metered app sets limits only (Ownkube sets the requests); a reserved app, database or cache is sized by its box, so change skuId to resize. Requests and limits are both settable only on your own cluster."
        }
      },
      "required": [
        "engine",
        "version"
      ],
      "description": "New config for a cache deployment."
    },
    "jobConfig": {
      "type": "object",
      "properties": {
        "repository": {
          "type": "string",
          "minLength": 1,
          "description": "Image repository to run, e.g. nginx or ghcr.io/org/app. Omit to keep the current image (always kept for an Ownkube build)."
        },
        "tag": {
          "type": "string",
          "minLength": 1,
          "description": "Image tag to run. Omit to keep the current tag (always kept for an Ownkube build)."
        },
        "command": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 64
        },
        "args": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 64
        },
        "env": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "secret": {
                "type": "boolean"
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "value"
            ]
          }
        },
        "resources": {
          "type": "object",
          "properties": {
            "requests": {
              "type": "object",
              "properties": {
                "cpu": {
                  "type": "string",
                  "minLength": 1
                },
                "memory": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "cpu",
                "memory"
              ],
              "description": "CPU and memory each replica is guaranteed. Settable only on your own cluster: on Ownkube Compute, Ownkube sets the requests and ignores any sent."
            },
            "limits": {
              "type": "object",
              "properties": {
                "cpu": {
                  "type": "string",
                  "minLength": 1
                },
                "memory": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "cpu",
                "memory"
              ],
              "description": "CPU and memory each replica may use. On a metered Ownkube Compute app this is how you size it, up to the largest box; a reserved app, database or cache is sized by its box (skuId) instead."
            }
          },
          "required": [
            "requests",
            "limits"
          ],
          "description": "Per-replica CPU and memory. On Ownkube Compute, a metered app sets limits only (Ownkube sets the requests); a reserved app, database or cache is sized by its box, so change skuId to resize. Requests and limits are both settable only on your own cluster."
        },
        "schedule": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "default": true
            },
            "expression": {
              "type": "string",
              "minLength": 1
            },
            "concurrencyPolicy": {
              "type": "string",
              "enum": [
                "Allow",
                "Forbid",
                "Replace"
              ],
              "default": "Forbid"
            },
            "timeZone": {
              "type": "string",
              "maxLength": 64
            },
            "startingDeadlineSeconds": {
              "type": "integer",
              "minimum": 0,
              "maximum": 86400
            },
            "successfulJobsHistoryLimit": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "failedJobsHistoryLimit": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "expression"
          ]
        },
        "job": {
          "type": "object",
          "properties": {
            "backoffLimit": {
              "type": "integer",
              "minimum": 0,
              "maximum": 20
            },
            "activeDeadlineSeconds": {
              "type": "integer",
              "minimum": 1,
              "maximum": 86400
            },
            "ttlSecondsAfterFinished": {
              "type": "integer",
              "minimum": 0,
              "maximum": 604800
            },
            "parallelism": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            },
            "completions": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            },
            "restartPolicy": {
              "type": "string",
              "enum": [
                "Never",
                "OnFailure"
              ],
              "default": "Never"
            }
          }
        }
      },
      "required": [
        "schedule"
      ],
      "description": "New config for a job deployment."
    },
    "note": {
      "type": "string",
      "maxLength": 200,
      "description": "Optional revision note."
    },
    "sendSsoInvites": {
      "type": "boolean",
      "description": "Email a sign-on invite to newly added allow-list addresses."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/ownkube-io-update-deployment-body"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.