PATCH
/
v0
/
business
/
{business_id}
/
ledger
/
{ledger_id}
curl --request PATCH \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/ledger/{ledger_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "type": "asset",
  "subtype": "current_asset",
  "financial_account_type": "bank_account",
  "debit_credit": "debit",
  "sort_code": "<string>",
  "editable": true,
  "report_cash_flow": true,
  "parent_id": "<string>"
}'
{
  "data": {
    "name": "<string>",
    "type": "asset",
    "subtype": "current_asset",
    "financial_account_type": "bank_account",
    "debit_credit": "debit",
    "sort_code": "<string>",
    "editable": true,
    "report_cash_flow": true,
    "parent_id": "<string>",
    "id": "<string>",
    "business_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

business_id
string
required
ledger_id
string
required

Body

application/json

Response

200
application/json
Successful Response

The response is of type object.