I cannot change the dns entry, I use a Manage access and permissions token.
my code
headers = {
"X-Auth-Email": auth_email,
"Authorization": "Bearer " + auth_key,
"Content-Type": "application/json"
}
data = {
"type": "",
"name": domain,
"content": "",
"ttl": 1,
"proxied": True
}
def setIp_v4(ip):
data["type"] = "A"
data["content"] = ip
r = requests.put(
url=update_url,
headers=headers,
data=data,
timeout=15
)
print(r.content)
returns
b'{"success":false,"errors":[{"code":10000,"message":"PUT method not allowed for the api_token authentication scheme"}]}\n'
how can i change the ip with a limited token?