A
A
AIexandr2016-07-27 18:23:17
API
AIexandr, 2016-07-27 18:23:17

The Yandex PDD API does not work for adding a subdomain?

Good afternoon!
Has anyone used the Yandex DNS hosting API to add subdomains?
I did everything as described here: https://tech.yandex.ru/pdd/doc/reference/dns-add-d...
But as a result there is a redirect to https://tech.yandex.ru/pdd/doc/ about-docpage/ and the domain is not added.
At the same time, the command for obtaining a list of domains works without problems ( https://tech.yandex.ru/pdd/doc/reference/dns-list-... and with the same API token. I
tried to add both from the .Net code, and "manually" fidlerom.
428edf553add4d459a1349a6613cc0ec.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AIexandr, 2016-07-29
@AIexandr

Got it! I sent the request in the body of the post, but it should have been in the url! By the way, in the dock it looks exactly like in the body (I am not familiar with the cUrl syntax, so the example with it from the docks did not help me). And after all, at first I tried to pass in the url, but at that moment I did not transfer the token in the header. Well it must be so pereklinilo!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question