# POST /api/v{version}/\_action/order/{orderId}/state/{transition} NOT available in shopware 6.0

**URL:** https://forum.shopware.com/t/post-api-v-version-action-order-orderid-state-transition-not-available-in-shopware-6-0/70755
**Category:** Shopware Playground - API first Sandbox
**Created:** [9. November 2020 um 07:05 UTC](https://forum.shopware.com/t/post-api-v-version-action-order-orderid-state-transition-not-available-in-shopware-6-0/70755 "2020-11-09T07:05:00Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![CallMeAlex](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@CallMeAlex](https://forum.shopware.com/u/CallMeAlex)
#### Post date: [21. Dezember 2020 um 09:31 UTC](https://forum.shopware.com/t/post-api-v-version-action-order-orderid-state-transition-not-available-in-shopware-6-0/70755/2 "2020-12-21T09:31:05Z")

</div>

&nbsp;

Hello @raduiosif‍ I am trying to edit the order status, too.

I‍t was working, but now it doesn’t. I used that route.

Patch:

```
api/v2/order/ddeee183fa2d46559f41d7b846386fcb?_response=true

```

Json:&nbsp;

```
{
    "stateId":"268EDC7D41334099AD1D456338526C20"
}

```

But currently I am getting this error.

```
{
    "errors": [
        {
            "code": "FRAMEWORK__WRITE_CONSTRAINT_VIOLATION",
            "status": "400",
            "detail": "Changing the state-machine-state of this entity is not allowed for scope crud. Either change the state-machine-state via a state-transition or use a different scope.",
            "template": "Changing the state-machine-state of this entity is not allowed for scope {{ scope }}. Either change the state-machine-state via a state-transition or use a different scope.",
            "meta": {
                "parameters": {
                    "{{ scope }}": "crud"
                }
            },
            "source": {
                "pointer": "/0/stateId"
            }
        }
    ]
}

```

Does anyone have an idea?

---

_[View the full topic](https://forum.shopware.com/t/post-api-v-version-action-order-orderid-state-transition-not-available-in-shopware-6-0/70755)._
