CURL update DNS record Request failed with status code 400

I follow the Cloudflare API v4 Documentation

headers = {
‘X-Auth-Email’: ‘[email protected]’,
‘X-Auth-Key’: ‘xxxx’,
‘Content-Type’: ‘application/json’,
data = ‘{“type”:“A”,“name”:“”,“content”:"%s",“ttl”:15,“proxied”:false}’ % wan_ip
requests.put(‘’, headers=headers, data=data)

ERROR MSG : Request failed with status code 400 Bad requiest.
This script is now unavailable, I don’t know what happened.

400 Bad Request (RFC7231)

Server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

thanks, I set the TTL good now.TTL must be between 60 and 86400 seconds