cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution
Highlighted

DDNS update failed

 {"code":"INVALID_BODY","fields":[{"code":"UNEXPECTED_TYPE","message":"is not a array","path":"records"}],"message":"Request body doesn't fulfill schema, see details in `fields`"}

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
New
Solution

Re: DDNS update failed

Hi,

Please show your code.

GoDaddy have changed their API and the /v1/domains/{domain}/records/{type}/{name} PUT method is expecting JSON array as body.

 

i.e., in my Powershell script, I had to replace this:

 

Invoke-WebRequest https://api.godaddy.com/v1/domains/$domain/records/A/$name -method put -headers $headers -Body $json -ContentType "application/json"

With that: (brackets around $json):

Invoke-WebRequest https://api.godaddy.com/v1/domains/$domain/records/A/$name -method put -headers $headers -Body [$json] -ContentType "application/json"

 

View solution in original post

2 REPLIES 2
Highlighted

Re: DDNS update failed

I'm seeing this issue as well, when using the getssl LetsEncrypt shell script.  I'm guessing Godaddy have updated their API.  I've opened a ticket on github for that script.

Highlighted
New
Solution

Re: DDNS update failed

Hi,

Please show your code.

GoDaddy have changed their API and the /v1/domains/{domain}/records/{type}/{name} PUT method is expecting JSON array as body.

 

i.e., in my Powershell script, I had to replace this:

 

Invoke-WebRequest https://api.godaddy.com/v1/domains/$domain/records/A/$name -method put -headers $headers -Body $json -ContentType "application/json"

With that: (brackets around $json):

Invoke-WebRequest https://api.godaddy.com/v1/domains/$domain/records/A/$name -method put -headers $headers -Body [$json] -ContentType "application/json"

 

View solution in original post