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

Forward 1000 domains via API

Hi all!

 

I am trying to 301 permanently forward domains via the API. Example:

 

apple.com => fruits.com/apple

orange.com => fruits.com/orange

banana.com => fruits.com/banana

...

 

But I am failing at very first step.

 

 

curl -X PUT "https://api.godaddy.com/v2/customers/12345/domains/forwards/apple.com" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: sso-key 12345:12345" -d "{ \"type\": \"REDIRECT_PERMANENT\", \"fruits.com": \"string\", \"mask\": { \"title\": \"string\", \"description\": \"string\", \"keywords\": \"string\" }}"

 

Error:

 

{"code":"ERROR_INTERNAL","message":"Not Found : Failed to get customer data for customerId or shopperId 48068473"}curl: (6) Could not resolve host: "string",

curl: (6) Could not resolve host: "mask"

curl: (3) [globbing] unmatched brace in column 1

curl: (6) Could not resolve host: "title"

curl: (6) Could not resolve host: "string",

curl: (6) Could not resolve host: "description"

curl: (6) Could not resolve host: "string",

curl: (6) Could not resolve host: "keywords"

curl: (6) Could not resolve host: "string"

curl: (3) [globbing] unmatched close brace/bracket in column 1

curl: (6) Could not resolve host: application

curl: (6) Could not resolve host: application

curl: (6) Could not resolve host: sso-key

curl: (3) [globbing] unmatched brace in column 62

curl: (6) Could not resolve host: "type"

curl: (6) Could not resolve host: "REDIRECT_PERMANENT",

curl: (3) [globbing] unmatched close brace/bracket in column 106

 

I also tried with V1 instead of V2 with same results.

 

Would be very very grateful if someone has insight.

 

Thanks a lot,

 

Josh

1 REPLY 1

Re: Forward 1000 domains via API

I have those 1000 domains etc,  and i have found that the best way to send them to somebody else is put them in Google Cloud storage, called Google Drive,  and than in shared files.