Sending a page for reindexing
Sends the URL for reindexing.
Request format
In the request body, pass the URL of the page to reindex.
POST https://api.webmaster.yandex.net/v4/user/{user-id}/hosts/{host-id}/recrawl/queue
|
Type: |
|
Type: |
Example
{
"url": "http://example.com"
}
<Data>
<url>http://example.com</url>
</Data>
Parameter | Description |
---|---|
url |
The URL of the page to be sent for reindexing. |
Response format
Examples
JSONXML
{ "task_id": "c7fe80c0-36e3-11e6-8b2d-df96aa592c0a", "quota_remainder": 1 }
<Data> <task_id>c7fe80c0-36e3-11e6-8b2d-df96aa592c0a</task_id> <quota_remainder>1</quota_remainder> </Data>
Name
Required
Type
Description
task_id
Yes
UUID
ID of the reindexing task.
quota_remainder
Yes
int32
The remainder of the daily quota.
Response codes
To view the response structure in detail, click the reason.
Code |
Reason |
Description |
202 |
ACCEPTED |
|
400 |
Wrong URL was passed. JSON
XML
|
|
403 |
The ID of the user who issued the token differs from the one specified in the request. In the examples below, JSON
XML
|
|
404 |
Site management rights are not verified. JSON
XML
|
|
409 |
The URL was already added for reindexing. JSON
XML
|
|
429 |
The daily quota for requests was exceeded. JSON
XML
|
Related information
Type: int64
. User ID. Required when calling all Yandex.Webmaster API resources. To get it, use the GET /v4/user method.
Type: host id (string)
. The site ID. To get it, use the GET /v4/user/{user-id}/hosts method.
Description
The URL of the page to be sent for reindexing.
Description
Error code.
Description
ID of the user who allowed access.
Description
ID of the requested site.
Description
Error message.
Required
Yes
Type
UUID
Description
ID of the reindexing task.
Required
Yes
Type
int32
Description
The remainder of the daily quota.