Set the sites a routine can reach
routines_set_sitesSets the full list of sites a routine's machine may reach on each run (example.com, or *.example.com for its subdomains; up to 20), for a routine that has to use a site like a person would because read_webpage can't get it. It replaces the list, so read routines_list first (allowedSites) and pass every site to keep. Always waits for approval, and only a workspace admin's approval applies it; for anyone else it says who can. The next run reaches the new list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sites | Yes | Every site the routine may reach. | |
| routineId | Yes | Routine id, from routines_list. | |
| workspace | No | Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys. | |
| approvalId | No | Approval id from a prior needs_confirmation response. Omit on the first call. |