# Bug OP-13814 - Delete work package API requires content-type header

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Low |
| Module |  |
| Target versions | 13.3.0 |
| Observed in versions |  |
| Sprint | 13.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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

### Steps to reproduce

1.  Call the delete workpackage API with the method DELETE and omit the content-type header

### What is the buggy behavior?

The endpoint responds with http status 406 Not Acceptable - Missing content-type header

### What is the expected behavior?

DELETE requests should not have a request body and some request implementations even strip away the body on request execution. Although no body is sent, the API insists on getting a content type header.

The request should be executed without the content type header

###   

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

*   [ ] Hosted cloud edition
*   [ ] Packaged installation
    *   What distribution?
*   [ ] Docker All-in-one container
*   [x] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

_v13.0.7_
