The _timestamp
in the JSON body represents the beginning of the period you're sending data for.
All of the data in a given data set (in your case, register-to-vote/volumetrics
) must be the same granularity eg daily data.
To send us new data:
curl --request POST -d @age_band.json --header "Content-type: application/json" --header 'Authorization: Bearer BEARER_TOKEN' https://www.performance.service.gov.uk/data/register-to-vote/volumetrics
curl --request POST -d @local_authority.json --header "Content-type: application/json" --header 'Authorization: Bearer BEARER_TOKEN' https://www.performance.service.gov.uk/data/register-to-vote/volumetrics
To empty the data set, send an empty array as a PUT:
curl --request PUT --data "[]" --header "Content-type: application/json" --header 'Authorization: Bearer BEARER_TOKEN' https://www.performance.service.gov.uk/data/register-to-vote/volumetrics