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":["99e2cb4d-660a-4271-ba99-7ab8536316a8","de625d45-caa2-46bd-ac5b-226792fb06f4","58c5cfe5-ef24-4e0f-98ad-2a567c6725bc"],"has_custom_expenditures":true}'
Request examples
{
"section_uuids": [
"99e2cb4d-660a-4271-ba99-7ab8536316a8",
"de625d45-caa2-46bd-ac5b-226792fb06f4",
"58c5cfe5-ef24-4e0f-98ad-2a567c6725bc"
],
"has_custom_expenditures": true
}
Response examples (204)
{}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}