---
updatedAt: 2025-06-05T21:41:26.000Z
agentTools:
  projectIndex: https://apidocs.officient.io/llms.txt
---

# Add budget

Scope required: budgets:write

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "officient-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.officient.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/1.0/budgets/add": {
      "post": {
        "summary": "Add budget",
        "description": "",
        "operationId": "add-budget",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "budget_type": {
                    "type": "string",
                    "description": "The type of budget."
                  },
                  "maximum": {
                    "type": "integer",
                    "description": "The maximum amount that will be set for the budget.",
                    "format": "int32"
                  },
                  "year": {
                    "type": "integer",
                    "description": "The year for which the budget will created.",
                    "format": "int32"
                  },
                  "employee_id": {
                    "type": "integer",
                    "description": "The id of the employee for which the budget will be created.",
                    "format": "int32"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": 1, \n  \"id\": 123\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "id": {
                      "type": "integer",
                      "example": 123,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "http",
              "code": "    {\n        \"employee_id\": 456,\n        \"budget_type\": \"My Budget\",\n        \"year\": 2021,\n        \"maximum\": 200\n    }"
            }
          ],
          "samples-languages": [
            "http"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```