O
O
olololoe2020-03-06 21:52:22
API
olololoe, 2020-03-06 21:52:22

How to correctly compose and send a request through the Yandex.Webmaster API "Starting the procedure for verifying rights"?

Here is the instruction - https://yandex.ru/dev/webmaster/doc/dg/reference/h...

But I can't figure out how to correctly send a request to confirm the rights to the site.
In stock we have:
{user-id}
{host-id}
api key

I send the request in this way

POST https://api.webmaster.yandex.net/v4/user/{user-id}/hosts/{host-id}?verification_type=HTML_FILE

api key I add to the header

, it gives out all the time like this

<?xml version='1.1' encoding='UTF-8'?><Data><error_message>Method not allowed</error_message><error_code>METHOD_NOT_ALLOWED</error_code></Data>


I don’t understand why the method is not supported when it is described on the page, I also tried to send META_TAG, it gives the same result.

I tried to google, I didn’t find anything, there are no tips on the forums :(
Whatever I tried, it doesn’t work, I’m stuck at this moment.
I really hope for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
olololoe, 2020-03-07
@olololoe

solution found
should have been sent to

https://api.webmaster.yandex.net/v4/user/{user-id}/hosts/{host-id}/verification?verification_type=HTML_FILE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question