# Bug OP-4228 - Documentation error: change parent id via API

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Low |
| Module |  |
| Target versions | 7.3.1 |
| Observed in versions |  |
| Sprint |  |
| 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

In the Documentation on http://docs.openproject.org/apiv3-doc/\#work-packages  
is the following imho incorrect example:

    {
        "lockVersion": 13,
        "subject": "Lorem"
        "parentId": "42"
    }

Maybe this was true in an older version? In the current version (7.2.3) this doesn’t do anything.

## Correction:

If you want to change the parent id you need the following code:

    {
        "lockVersion": 13,
        "_links": {"parent": {"href": "/api/v3/work_packages/42"}}
    }

I’m not sure if this is the right place to report this. But I didn’t find information about where to report documentation errors. If there is another way intended to report - please tell me.
