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": [
"f633d85f-01a6-4e17-a37d-907f4bfc6e33",
"85e9021a-afd2-4a92-96a9-5241d4dfc40d",
"ac2beeb5-1e12-468e-9ab9-86866976a5a7"
],
"has_custom_expenditures": true
}'
Request examples
{
"section_uuids": [
"f633d85f-01a6-4e17-a37d-907f4bfc6e33",
"85e9021a-afd2-4a92-96a9-5241d4dfc40d",
"ac2beeb5-1e12-468e-9ab9-86866976a5a7"
],
"has_custom_expenditures": true
}
Response examples (204)
{}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}