Request Header
Key |
Description |
X-USER-TOKEN |
[required] It is the authentication token specified at the time of user registration. |
Request Body
Key |
Type |
Description |
quantity |
string |
[optional] Specify the quantity to be registered on the specified date.Validation rule: int^-?[0-9]+ float^-?[0-9]+.[0-9]+ |
optionalData |
string |
[optional] Additional information other than quantity. It is specified as JSON string.The amount of this data must be less than 10 KB. |
modify_endpoint = f"{pixela_endpoint}/{USERNAME}/graphs/{GRAPH_ID}/20220116"
modify_data = {
"quantity": "90"
}
response = requests.put(url=modify_endpoint, json=modify_data, headers=headers)
print(response.text)
delete_endpoint = f"{pixela_endpoint}/{USERNAME}/graphs/{GRAPH_ID}/20220116"
response = requests.delete(url=delete_endpoint, headers=headers)
print(response.text)