SRV Record using API v4

I can’t create a SRV record by Cloudflare APi v4.
I use a POST method, with name=_minecraft._tcp.mydomain, content=5\t25565\tmydomain, priority=1,
proxied=false. And it only return 400 bad request ???

bump. help me pls

Here is a curl example for creating

curl "" \
     --header "X-Auth-Email: [email protected]" \
     --header "X-Auth-Key: ..." \
     --header "Content-Type: application/json" \
     --data '{"type": "SRV", "data": {"service": "_minecraft", "proto": "_tcp", "name": "", "priority": 1, "weight": 5, "port": 25565, "target": ""}}'

Tack så mycket @andreas that’s a great example.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.