# Bug OP-7423 - Impossible to deactivate a project through the API

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-7423

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date | 2020-08-04 –  |
| Priority | High |
| Module |  |
| Target versions | 11.0.0 |
| Observed in versions | 10.6.0 |
| Sprint | 11.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 10.6.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

Your OpenProject Version: 10.6.5 / Self Hosted

### **Logs**

``` text
-----------START-----------

PATCH /api/v3/projects/463

Content-Length: 17

Content-Type: application/json

Authorization: Basic XXXXXXXXXXXXX

{"active": false}

#############

{'_type': 'Error', 'errorIdentifier': 'urn:openproject-org:api:v3:errors:MissingPermission', 'message': "Vous n'êtes pas autorisé à accéder à cette ressource."}

#############
```

### **Steps to reproduce:**

PATCH /api/v3/projects/{id}

Body : {'active':'false'}

### **Actual Behavior**

I can't change the setting active to False whereas I have an admin account on this project.

I also verify that the apikey is still associate to my admin account.
