CAIN-42 CAIN Studio

API reference · schema

CreateBudgetRequest

12 fields · used by 1 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
name requiredstringmin length 1 · max length 255
descriptionstringdefault ""
scopestringdefault "tenant"
scope_idstring or null
parent_idstring or null
limit_cents requirednumber> 0.0
periodstringdefault "monthly"
hard_limitbooleandefault true
soft_limit_pctnumbermin 0.0 · max 100.0 · default 80.0
alert_threshold_pctnumbermin 0.0 · max 100.0 · default 50.0
currencystringdefault "USD"
metadataobject or null

Smallest valid example

{
  "name": "name",
  "description": "",
  "scope": "tenant",
  "limit_cents": 1.0,
  "period": "monthly",
  "hard_limit": true,
  "soft_limit_pct": 80.0,
  "alert_threshold_pct": 50.0,
  "currency": "USD"
}

Used by 1 operation

POST/fabric/budgetsCreate Budget

JSON Schema

Show the raw definition
{
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Name"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "default": ""
    },
    "scope": {
      "type": "string",
      "title": "Scope",
      "default": "tenant"
    },
    "scope_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scope Id"
    },
    "parent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Id"
    },
    "limit_cents": {
      "type": "number",
      "exclusiveMinimum": 0.0,
      "title": "Limit Cents"
    },
    "period": {
      "type": "string",
      "title": "Period",
      "default": "monthly"
    },
    "hard_limit": {
      "type": "boolean",
      "title": "Hard Limit",
      "default": true
    },
    "soft_limit_pct": {
      "type": "number",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Soft Limit Pct",
      "default": 80.0
    },
    "alert_threshold_pct": {
      "type": "number",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Alert Threshold Pct",
      "default": 50.0
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "default": "USD"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata"
    }
  },
  "type": "object",
  "required": [
    "name",
    "limit_cents"
  ],
  "title": "CreateBudgetRequest"
}

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 7-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem