Update all chart properties

PUT
https://api.datawrapper.de/v3/charts/{id}

Replaces the entire metadata object. Requires scope chart:write.

Example Request

curl --request PUT \
  --url https://api.datawrapper.de/v3/charts/example-id \
  --header 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "My cool chart",
  "theme": "datawrapper",
  "type": "d3-lines"
}'

Headers

NameValueRequiredDescription
Content-Typeapplication/jsonYesThe format of the request body.

Path Parameters

NameTypeAllowed valuesRequiredDescription
idstring
5 characters
Yes5 character long chart ID.

Request Body

FieldTypeAllowed valuesRequiredDescription
titlestring NoTitle of your chart. This will be the chart headline.
themestring
matches ^[a-z0-9]+(?:-{1,2}[a-z0-9]+)*$
2 characters or more
No
typestring
matches ^[a-z0-9]+(?:-{1,2}[a-z0-9]+)*$
NoType of the chart (Reference)
externalDatastring NoURL of external dataset
languagestring
matches ^[a-z]{2}([_-][A-Z]{2})?$
NoVisualization locale (e.g. en-US)
lastEditStepinteger
1 to 5
NoCurrent position in chart editor workflow
publicVersioninteger No
publicUrlstring No
publishedAtstring No
metadataobject NoMetadata that saves all chart specific settings and options.
metadata.dataobject No
metadata.data.transposeboolean No
authorIdinteger No
organizationIdstring NoID of the team (formerly known as organization) that the visualization should be created in. The authenticated user must have access to this team.
folderIdinteger NoID of the folder that the visualization should be created in. The authenticated user must have access to this folder.
organization_idstring NoDeprecated. Use organizationId instead.
folder_idinteger NoDeprecated. Use folderId instead.
inFolderinteger NoDeprecated. Use folderId instead.
in_folderinteger NoDeprecated. Use folderId instead.
external_datastring NoDeprecated. Use externalData instead.
last_edit_stepinteger
1 to 5
NoDeprecated. Use lastEditStep instead.
author_idinteger NoDeprecated. Use authorId instead.
public_versioninteger NoDeprecated. Use publicVersion instead.
public_urlstring NoDeprecated. Use publicUrl instead.
published_atstring NoDeprecated. Use publishedAt instead.

Response

FieldTypeRequiredDescription
idstringNoID of the visualization
titlestringNoTitle of the visualization
publicIdstringNoPublic ID of the visualization. May be different from the internal ID, if *hash publishing* is enabled.
authorIdintegerNoID of user that created the visualization.
organizationIdstringNoID of the team that the visualization is located in. If null, visualization is private.
folderIdintegerNoID of the folder that the visualization is located in. If null, visualization is in the root of a team, or your private archive.
folderobjectNo
folder.namestringNoUser-defined folder name
languagestringNoVisualization language (output locale), e.g en-US
themestringNoID of theme applied to the visualization
typestringNoType of visualization, e.g d3-lines, d3-maps-choropleth, tables
createdAtstringNoTime and date when the visualization was created.
lastModifiedAtstringNoTime and date when the visualization was last edited.
publishedAtstringNoTime and date when the visualization was last published. null, if the visualization has not been published yet.
lastEditStepintegerNoA number encoding which of the editor steps this chart has been edited in so far. 5 = published.
publicVersionintegerNoIndicates how many times a visualization has been published.
authorobjectNo
author.namestringNoName of the user who created the visualization
author.emailstringNoEmail address of the user who created the visualization
author.avatarstringNoURL pointing to the user avatar
author.colorstringNoColor chosen by the user
thumbnailsobjectNo
thumbnails.fullstringNoURL pointing to the most recently generated preview thumbnail for the visualization. (Image includes header & footer).
thumbnails.plainstringNoURL pointing to the most recently generated preview thumbnail for the visualization. (Image is just the visualization, without header & footer).
urlstringNoAPI URL for the visualization, can be used to retreive additional information, including its metadata.
guestSessionstringNoGuest session id
downloadImageFilenamestringNoDownload image filename
downloadDataFilenamestringNoDownload data filename
sourceImageFilenamesobjectNoSource image filenames
sourceImageFilenames.pngstringNo
sourceImageFilenames.svgstringNo
sourceImageFilenames.pdfstringNo
readonlyKeysstring[]No
openCommentsintegerNoNumber of comments on the visualization
workspaceTeamSettingsobjectNoFrontend-allowed team and workspace settings
deletionInDaysnumberNoNumber of days until the visualization will be permanently deleted.
deletedByobjectNoUser who moved the visualization to the trash.
deletedBy.namestringNoName of the user who moved the visualization to the trash.
deletedBy.emailstringNoEmail address of the user who moved the visualization to the trash.
deletedBy.avatarstringNoURL pointing to the user avatar
deletedBy.colorstringNoColor chosen by the user
publicUrlstringNoURL of published visualization.
deletedbooleanNo
deletedAtstringNoTime and date when the visualization was deleted.
forkablebooleanNoIndicates if the visualization has been shared in the Datawrapper River.
isForkbooleanNoIndicates if the visualization is a copy of another visualization.
forkedFromstringNoID of the visualization that this visualization was copied from. null if it is not a copy.
externalDatastringNoExternal data URL, relevant for live visualizations.
metadataobjectNoAll of the visualization's settings.
chartHashstringNoHash of the visualization's metadata.
customFieldsobjectNo
keywordsstringNoKeywords
utf8booleanNoUTF-8
riverobjectNo
river.sourcestringNo
river.sourceUrlstringNo
basedOnBylinestringNo
workspacestringNo