Upload chart data
PUT
https://api.datawrapper.de/v3/charts/{id}/data Upload data for a chart or map. Requires scope chart:write.
Example Request
curl --request PUT \
--url https://api.datawrapper.de/v3/charts/example-id/data \
--header 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
--header 'Content-Type: text/csv' \
--data 'column1,column2
value1,value2'Headers
| Name | Value | Required | Description |
|---|---|---|---|
Content-Type | text/csvor application/json | Yes | The format of the request body. |
Path Parameters
| Name | Type | Allowed values | Required | Description |
|---|---|---|---|---|
id | string | 5 characters | Yes |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
body | string | object | No | An asset used by the chart such as CSV data or custom JSON map. |