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>"
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The response is of type object
.
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>"
}
}
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>"
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response
The response is of type object
.
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>"
}
}