RSS feed status
Changes the status of the RSS feed update toggle.
Allows you to change the update status of a content feed. The status can only be changed if the feed has passed all validations. If the validations haven't been passed, the API will return an error.
Request format
POST https://api.webmaster.yandex.net/v4/user/{user-id}/hosts/{host-id}/content-feeds/set-enabled/
|
Type: |
|
Type: |
Example
{
"url": "https://www.example.com/xml/yandex/rss.xml",
"isEnabled": true
}
<?xml version="1.0" encoding="UTF-8"?>
<request>
<url>https://www.example.com/xml/yandex/rss.xml</url>
<isEnabled>true</isEnabled>
</request>
Parameter | Type | Description |
---|---|---|
url |
string |
URL of the RSS feed. |
isEnabled |
boolean |
Toggle status: true to enable updates, false to disable updates. |
Response format
Example
{}
<?xml version="1.0" encoding="UTF-8"?>
<response>
</response>
Name |
Required |
Type |
Description |
|
Yes |
|
HTTP status code. |
Response codes
Code |
Reason |
Description |
200 |
OK |
The request is successful. |
400 |
|
The feed hasn't passed validation checks and cannot be activated. JSON
XML
|
404 |
|
The specified feed URL was not found for this domain. JSON
XML
|