# Bug OP-9858 - Missing property in the response of api/v3/work_packages/{id} JSON (path: _links/copy) 

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Low |
| Module |  |
| Target versions | 14.4.0 |
| Observed in versions | 12.0.0 |
| Sprint | 14.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.0.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 | Eric Schubert |
| 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: **12.0.5**

Operating System / Browser / OpenProject language: not applicable

### **Logs**

### **Steps to reproduce:**

1.  call GET api/v3/work\_packages/{id}

### **Actual Behavior**

1.  in the \_links collection, I find the following:

<!-- end list -->

``` text
    "copy": {
      "href": "/work_packages/1700/copy",
      "title": "Copy Update dependencies"
    },
```

2\. when following that link in my browser, I land on the following page:

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27427/content"></div></figure>

which looks like the "copy project page", just without the title on top. Could be that this is on purpose, but in that case, the href value is misleading and this is a flaw in the rest-API design.  
3\. It also took me a while before I realized that 'Update dependencies' the title, is the title of the work package.

### **Expected Behavior**

1.  the "copy" link has a type property:

<!-- end list -->

``` text
    "copy": {
      "href": "/work_packages/1700/copy",
      "type": "text/html",
      "title": "Copy Update dependencies"
    },
```

It is a small bug, but as my Hal-rest-client library is relying on the type being correctly set if it is not hal+json, this is pretty annoying.

2\. if I follow the link, I create a copy of the work package, not the project.

3\. the title is "Copy work package 'Update dependencies'"
