Publish a chart
POST
https://api.datawrapper.de/v3/charts/{id}/publish Requires scopes chart:read *and* chart:write *and* theme:read *and* visualization:read.
Example Request
curl --request POST \
--url https://api.datawrapper.de/v3/charts/example-id/publish \
--header 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
--header 'Content-Type: application/json' \
--data '{
"callWebhooks": true
}'Headers
| Name | Value | Required | Description |
|---|---|---|---|
Content-Type | 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 | Allowed values | Required | Description |
|---|---|---|---|---|
waitForImages | boolean | No | Wait for images to be published before completing publish. Overrides team configuration for this option. Only available with access to the image publishing feature. | |
callWebhooks | boolean | Default: true | No | Call any configured webhooks / integrations after publishing. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
data | object | No | |
version | integer | No | |
url | string | No |