# Update Multiple Datastreams Simultaneously

Update multiple Datastreams of a single device with one GET request. It can help with saving the data volume for cellular devices.

{% hint style="warning" %}
Use such update for Map Widget in Blynk.Console so that all datapoints have same timestamp for data and coordinates.
{% endhint %}

## Batch update

<mark style="color:blue;">`GET`</mark> `https://{server_address}/external/api/batch/update?token={token}&{pin1}={value1}&{pin2}={value2}`

This operation updates multiple Datastreams of a single device with one GET request.\
\
**Example:**\
`https://blynk.cloud/external/api/batch/update?token=bFFtSHNCZZDWQ__Zs96cP5jLMhLoJofg&v1=33&v2=44`

#### Path Parameters

| Name  | Type   | Description                                                                                                                                                                                                                                   |
| ----- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token | string | Device AuthToken                                                                                                                                                                                                                              |
| pin   | string | Virtual Pin                                                                                                                                                                                                                                   |
| value | string | The desired value of the Datastream. Will be parsed based on the Datastream data type (int, double, string) and bounded with min / max values of datastream settings. In case value doesn't match the Datastream type error will be returned. |

{% tabs %}
{% tab title="200 Success" %}

```
OK
```

{% endtab %}

{% tab title="400 Could not find a device token
or
Wrong pin format
or
Value doesn't match the Datastream data type" %}

```
{"error":{"message":"Invalid token."}}

or

{"error":{"message":"Wrong pin format."}}

or

{"error":{"message":"Value doesn't match the Datastream data type"}}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
You can get the **Device auth token** in [Device info](https://docs.blynk.io/en/~/revisions/ynmC8lZ6FPocTYWigjcO/getting-started/activating-devices/manual-device-activation#step-3-getting-auth-token).
{% endhint %}

You can also use Blynk.Edgent API to [send data with the same timestamp](https://docs.blynk.io/en/~/revisions/ynmC8lZ6FPocTYWigjcO/blynk-library-firmware-api/virtual-pins#blynk.begingroup-blynk.endgroup).
