# Dataset.update

## Description

Updates the data from a dataset.

## Input / Parameter

| Name    | Description                                                             | Input Type   | Default | Options | Required |
| ------- | ----------------------------------------------------------------------- | ------------ | ------- | ------- | -------- |
| dataset | The name of the dataset that is created in Services.                    | Text         | -       | -       | Yes      |
| filter  | The filters to be applied.                                              | FilterFormat | -       | -       | No       |
| data    | Multiple dynamic attributes with values associated with each attribute. | Object       | -       | -       | Yes      |
| extra   | The stored value that is passed to all the callbacks.                   | Any          | -       | -       | No       |

### FilterFormat (Object)

The format used for filtering in the parameter `filter`.

| Key      | Description                                    | Input Type | Default | Options | Required |
| -------- | ---------------------------------------------- | ---------- | ------- | ------- | -------- |
| operator | Query operators used to filter multiple times. | Text       | And     | Or, And | No       |
| data     | Set of rules for another group of queries.     | List       | -       | -       | No       |

#### data (List)

Will contain a list of one (1) or more objects with the following structure (dataset, operator, value) and contain zero (0) or more objects with the same structure (FilterFormat only). This can be another FilterFormat to create grouped queries.

| Key      | Description                                                    | Input Type | Default | Options                                                                                                                                                                     | Required |
| -------- | -------------------------------------------------------------- | ---------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| dataset  | The dataset to filter.                                         | Text       | -       | -                                                                                                                                                                           | No       |
| field    | The field to be filtered.                                      | Text       | -       | -                                                                                                                                                                           | Yes      |
| operator | Operators to be used for specific filtering.                   | Text       | -       | Equal, Not\_Equal, Is\_Null, Is\_Not\_Null, Greater\_Than, Greater\_Than\_Or\_Equal, Less\_Than, Less\_Than\_Or\_Equal, Like, Not\_Like, In, Not\_In, Between, Not\_Between | Yes      |
| value    | The value to perform the query, which depends on the operator. | Any        | -       | -                                                                                                                                                                           | No       |

## Output

| Description                        | Output Type |
| ---------------------------------- | ----------- |
| Returns the formatted information. | Object      |

### Object

| Key     | Description                                                             | Output Type |
| ------- | ----------------------------------------------------------------------- | ----------- |
| success | Boolean value to denote whether the function was executed successfully. | Text        |
| message | The message to print.                                                   | Text        |
| data    | Any additional message or data to print.                                | Text        |

## Callback

### callback

The action performed if this function runs successfully.

| Description                                        | Output Type |
| -------------------------------------------------- | ----------- |
| Returns the list of updated data from the dataset. | List        |

### errorCallback

The action performed if this function does not run successfully.

| Description               | Output Type |
| ------------------------- | ----------- |
| Returns an error message. | Text        |

## Video

Coming Soon.

## Example

Coming Soon.

### Steps

Coming Soon.

### Result

Coming Soon.

## Links


---

# Agent Instructions: 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:

```
GET https://docs.emobiq.com/emobiq-server/005-function/dataset/dataset.update.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
