Skip to main content
PATCH
/
v0
/
budgets
/
{budget_id}
Update Budget
curl --request PATCH \
  --url https://api.example.com/v0/budgets/{budget_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "category_name": "<string>",
  "limit_amount": "<string>",
  "original_request": "<string>",
  "budget_type": "weekly",
  "period_start": 123,
  "period_end": 123
}
'
{
  "_links": {
    "kyc": {
      "description": "Submit KYC information",
      "href": "/v0/user/me/kyc",
      "method": "PUT"
    },
    "self": {
      "href": "/v0/user/me",
      "method": "GET"
    },
    "wallets": {
      "href": "/v0/wallets",
      "method": "GET"
    }
  }
}

Headers

x-sumvin-token
string | null
x-juno-jwt
string | null

Path Parameters

budget_id
integer
required

Body

application/json
name
string | null
Required string length: 1 - 100
category_name
string | null
limit_amount
string | null
original_request
string | null
budget_type
enum<string> | null
Available options:
weekly,
monthly,
yearly,
custom
period_start
integer | null

Period start timestamp in milliseconds. Required when changing to CUSTOM budget type.

period_end
integer | null

Period end timestamp in milliseconds. Required when changing to CUSTOM budget type.

Response

Budget updated successfully

HAL-style hypermedia links for navigation and available actions.

budget
BudgetData · object
required