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”:“xxxx.com”,“content”:“%s”,“ttl”:15,“proxied”:false}’ % wan_ip
requests.put(‘https://api.cloudflare.com/client/v4/zones/88be5e09539a4caf91fa341bf034de16/dns_records/d718b4741e86988aa8ce91bc1f77ed55’, 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 300.works good now.TTL must be between 60 and 86400 seconds