Update the custom expenditures setting across all uuids Run in API Explorer
Ask AI
POST
/api/v1/expenditure-structure/section/set-custom-expenditure
curl \
--request POST 'https://api.plannrcrm.com/api/v1/expenditure-structure/section/set-custom-expenditure' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{
"section_uuids": [
"a8a1336e-178e-4e5e-9034-c879e86ed4b6",
"4e0b6113-902c-4916-b00a-96f480ba2890",
"afefc367-e598-4e45-af15-63051b1b462d"
],
"has_custom_expenditures": true
}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"section_uuids": [
"a8a1336e-178e-4e5e-9034-c879e86ed4b6",
"4e0b6113-902c-4916-b00a-96f480ba2890",
"afefc367-e598-4e45-af15-63051b1b462d"
],
"has_custom_expenditures": true
}
Response examples (204)
{}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}