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

Update Domain Contacts via API

Hi,

I'm trying to update the contact information of a domain via the API.

my request is like below :

curl -X PATCH -v -H 'Authorization: sso-key <KEY>' -H 'Content-Type: application/json' "https://api.godaddy.com/v1/domains/MYDOMAIN.COM/contacts" -d \
'[{"DomainContacts":"{ 
	  "contactRegistrant": { 
		"nameFirst": "Domain", 
		"nameLast": "Admin", 
		"organization": "Company Inc.", 
		"email": "datacentersupport@company.com", 
		"phone": "1.1234567891", 
		"fax": " ", 
		"addressMailing": { 
		  "address1": "195 Broadway", 
		  "address2": "", 
		  "city": "New York", 
		  "state": "New York", 
		  "postalCode": "10007", 
		  "country": "US" 
		} 
	  }
	 }
 }]'

but i got this error :
INVALID_BODY: Request body doesn't fulfill schema, see details in `fields`

NB: the body of the request showed above is transformed to be a json object of one line.

 

1 REPLY 1

Re: Update Domain Contacts via API

Hello and welcome to the community @Gabinho237 . I'm a GoDaddy user like yourself and noticed that no one has responded to your post. Were you able to get the API to work? If not, I might you calling GoDaddy support team and see if they can better assist you.

Very Respectfully,

Drew Davis
Navy Veteran and Entrepreneur | GoDaddy Pro user | "Proud to be serving others!"

*** Please note that I offer free advice on this forum. Please feel free to give me KUDOS on this topic/discussion; mark my comment as ACCEPTED SOLUTION if you believe I've helped solved your issue. Thanks! ***