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" \
--data '{"section_uuids":["1cf9a50d-069c-4f26-8131-aa196d2bf117","0b8cbad7-48ee-414a-8ea8-91f9eaaf4ef0","f24333e7-6916-4399-a679-b4f20987bfa2"],"has_custom_expenditures":true}'
Request examples
{
"section_uuids": [
"1cf9a50d-069c-4f26-8131-aa196d2bf117",
"0b8cbad7-48ee-414a-8ea8-91f9eaaf4ef0",
"f24333e7-6916-4399-a679-b4f20987bfa2"
],
"has_custom_expenditures": true
}
Response examples (204)
{}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}