What it does
Write robots.txt into the draft. Visitors get it with the next publish_site. A private, offline, unpublished, or unreviewed site still serves Disallow: / and ignores this file.
Plans
Works on every plan: Free, Basic, Pro and Ultra.
Parameters
| Name | Type | About |
|---|---|---|
site_idrequired | string | The id of the site. list_sites gives the ids of your sites. |
sourcerequired | string | The text of robots.txt. |
message | string | A short note for the version history, like a commit message. |
verbose | boolean | true lists every file and page of the draft. Otherwise the response lists only what this call changed, plus draft totals. |
draft | string | Optional name of your own draft of this site (lowercase letters, digits and dashes, at most 40), such as "pricing-redesign". Each agent has its own drafts, so other agents' work never mixes into yours; give a name when you might work on this site from more than one chat at once, and use the same name on every read, write and publish of that piece of work. Without it you use your default draft. |
Example
Call put_robots with these arguments:
{
"site_id": "01a1…",
"source": "User-agent: *\nAllow: /\nSitemap: https://team-recipes.pagehive.space/sitemap.xml"
}
Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.
Related guides
- Feeds, JSON and text pagesRSS, JSON, CSV, calendars and llms.txt from your data.