Create a record using rest api

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!

In my setup the following syntax works:

   curl -sS --fail \
   -H "Authorization: Bearer $TOKEN" \
   -H "Content-Type: application/json" \
   -H "Accept: application/json" \
   --data '{"type": "AAAA", "name": "'$HOST'", "data": "::dead:beef:ea75:da7a"}' \
   https://dynv6.com/api/v2/zones/$ZONEID/records

The main difference seems to be in de first line: just omit -X POST.
Btw, the “data” field contains only the local part of the IPv6 address.