# Update a Specific order line

Method : <mark style="color:green;">**PUT**</mark>

{% code fullWidth="false" %}

```url
https://os.vucustom.com/api/v1/order_lines?id=&line_reference=
```

{% endcode %}

URL Parameters

<table><thead><tr><th width="187">Field Name</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>System-generated unique identifier for the order line</td></tr><tr><td>line_reference</td><td>External reference number for the order line</td></tr></tbody></table>

Request body schema

<table><thead><tr><th width="244">Field Name</th><th>Description</th></tr></thead><tbody><tr><td>purchase_order_number</td><td>External purchase order reference</td></tr><tr><td>sales_order_number</td><td>External sales order reference</td></tr><tr><td>status</td><td>New status for the order line</td></tr></tbody></table>

<details>

<summary>Example Request</summary>

```json
{
    "order_line": {
        "purchase_order_number": "PO NUMBER",
        "sales_order_number": "SO NUMBER",
        "status": "on_hold"   
    }
}
```

</details>

{% tabs %}
{% tab title="200" %}
**`200 Successful response example`**

```json
preview not available
```

{% endtab %}

{% tab title="401 " %}
**`401 Unauthorized`**

`The client doesn’t have correct authentication credentials.`

```
{
"errors": "[API] Invalid API key or secret (unrecognized login or wrong password)"
}
```

{% endtab %}

{% tab title="403" %}
**`403 Forbidden`**

`The server is refusing to respond. This is typically caused by incorrect access.`
{% endtab %}

{% tab title="404" %}
**`404 Not Found`**

`The requested resource was not found but could be available again in the future.`
{% endtab %}

{% tab title="422" %}
**`422 Unprocessable Entity`**
{% endtab %}

{% tab title="5xx" %}
**`5xx Errors`**

`An internal error occurred in VU Admin.`
{% endtab %}
{% endtabs %}
