Update Spectrum application with API

For Workers & Pages, what is the name of the domain?

mc.skyguides.net

What is the error number?

1000,10001,10003

What is the error message?

loudflare Failed to update DNS record. Response: {“success”:false,“errors”:[{“code”:10000,“message”:“Authentication error”}]} using zone id and appid

What is the issue or error you’re encountering

API not working

What steps have you taken to resolve the issue?

  • Create API token with ‘Zone settings’ read and write
  • used Global API Token instead

What are the steps to reproduce the issue?

Dear Cloudflare community,

I’m hosting a small Minecraft server at home and protecting it Spectrum. The problem here is that I have DDNS at home. Now I wantet to update the Spectrum application as soon as the IP changes - like I do in my DNS settings.

I’ve tried so many ways to update to IP without success. Is it even possible to make an API call with the PRO plan on a Spectrum application?

I was trying it with curl. Someone got a solution for that?

Best regards and Merry Christmas
Jonas

I’ve only created Spectrum applications with the API and not modified them, but from the API commands available I don’t think it’s possible when the origin is entered as an IP address…

Better to point your Spectrum application at a hostname that’s in your Cloudflare DNS rather than an IP address, and then update the DNS record for the hostname if your IP changes. That way any DDNS client can do it. The DNS record can be proxied if you want to be sure your origin IP is hidden, Spectrum will use the unproxied value.

I’ve not checked which tokens are required for Spectrum anyway, DNS modification is much easier.

2 Likes

Thanks for your reply, but here comes a other problem: I can’t point the Spectrum application to a hostname - I think this limited to Enterprise only.