Delete Budget

Sample request

The DeleteBudget mutation allows authenticated administrators to soft-delete budgets in a Decidim budget component. This mutation marks the budget as deleted without permanently removing it from the database.

mutation deleteBudget($componentId: ID!, $budgetId: ID!){
  component(id: $componentId){
    ... on BudgetsMutation {
      budget(id: $budgetId){
        delete(id: $budgetId) {
          id
        }
      }
    }
  }
}

Example of submitted variables

{
  "componentId": "3",
  "budgetId": "5"
}

Error Handling