I’m trying to create an additional record for my existing zone.
I managed already to get details for an existing record via rest api, but didn’t manage to create one.
I tried this in Linux console:
curl -X POST
-H “Authorization: Bearer xxxManyCharacters_”
-H “Accept: application/json”
-d ‘{“name”: “mytestserver”, “data”: “2a01:1234:441b:aa00:abcd:1234:abcd:1234”, “type”: “AAAA”}’
https://dynv6.com/api/v2/zones/1234567/records
Response was:
{“name”:“ValidationError”,“message”:“entity validation failed”,“fields”:[{“name”:“type”,“message”:“cannot be blank”}]}
Obviously, I didn’t get the syntax right. Any suggestion how this should be? Thanks in advance!