> For the complete documentation index, see [llms.txt](https://alek-cora-glez.gitbook.io/odoo-generic-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alek-cora-glez.gitbook.io/odoo-generic-api/update.md).

# Update

## **(Update) - Using API to update resources**

**\[PUT]:** *https\://\<server-url>/api/\<model\_name>}/\<resource\_id>*

{% tabs %}
{% tab title="Request" %}

```
curl --location --request PUT 'https://<server_url>/api/hr.employee/<record_id>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
    "name": "Alek Cora Glez",
    "category_ids": [2],
    "job_id": {
        "name": "Another Job"
    }
}'
```

{% endtab %}

{% tab title="Response" %}

```
{
    "jsonrpc": "2.0",
    "id": null,
    "result": {
        "status_code": 200,
        "data": {
            "id": <record_id>
        }
    }
}
```

{% endtab %}
{% endtabs %}
