> For the complete documentation index, see [llms.txt](https://emotiv.gitbook.io/cortex-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://emotiv.gitbook.io/cortex-api/records/updaterecord.md).

# updateRecord

This method is to update a record. You can update its title, description and its tags.

Your application cannot update a record that was created by another application.

## Parameters

| Name        | Type               | Required | Description                                                                                         |
| ----------- | ------------------ | -------- | --------------------------------------------------------------------------------------------------- |
| cortexToken | `string`           | yes      | A token returned by [authorize](/cortex-api/authentication/authorize.md).                           |
| record      | `string`           | yes      | A record id returned by [createRecord](/cortex-api/records/createrecord.md).                        |
| title       | `string`           | no       | <p>The new title of the record.</p><p><em>This parameter was added in Cortex 2.5.0</em></p>         |
| description | `string`           | no       | The new description of the record. Omit this parameter if you don't want to update the description. |
| tags        | `array of strings` | no       | The new tags of the record.Omit this parameter if you don't want to update the tags.                |

## Result

The result is a [record object](/cortex-api/records/record-object.md).

## Examples

Update the tags and the description.

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

```javascript
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "updateRecord",
    "params": {
        "cortexToken": "xxx",
        "record": "d8fe7658-71f1-4cd6-bb5d-f6775b03438f",
        "description": "My best record ever.",
        "tags": ["best", "snow", "direwolf"]
    }
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "applicationId": "com.jon.snow.winterfell-app",
        "applicationVersion": "1.0",
        "description": "My best record ever.",
        "endDatetime": "2019-06-06T11:42:23.436191+07:00",
        "experimentId": 0,
        "licenseId": "xxx",
        "licenseScope": ["pm","eeg"],
        "ownerId": "76c3468a-d9c0-428d-81b4-bdac5d63860e",
        "startDatetime": "2019-06-06T11:41:53.088632+07:00",
        "tags": ["best", "snow", "direwolf"],
        "title": "Cortex Examples C++",
        "uuid": "d8fe7658-71f1-4cd6-bb5d-f6775b03438f"
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://emotiv.gitbook.io/cortex-api/records/updaterecord.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
