Delete Project

Sample request

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

mutation deleteProject($componentId: ID!, $budgetId: ID!, $projectId: ID!){
  component(id: $componentId){
    ... on BudgetsMutation {
      budget(id: $budgetId){
        deleteProject(id: $projectId){
          id
          url
        }
      }
    }
  }
}

Example of submitted variables

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

Error Handling