Skill: Rename Site
Set or clear the name people see for one of your organization's sites. The site's address, files and live version don't change, and there's nothing to publish.
Rename Site sets the name people see for a site your organization owns, or clears it. It comes with the Web Builder, and does the same as Rename on the site’s page in Sites.
The display name is only a label. The site’s site_name, address, files and live version don’t change, nothing is published, and the site’s Last updated time stays the same. Every Web skill still finds the site by its site_name afterwards.
Parameters
| Parameter | Type | Description |
|---|---|---|
site_name | string | The site, as List Sites reports its site_name. Not its display name |
display_name | string or null | The new name, for example “Spring offer”: one line, at most 80 characters, trimmed. null or "" clears it, so the site shows as its site_name again. Required |
Response
| Field | Description |
|---|---|
success | true |
changed | false when the site already had that name |
site_name | The site |
display_name | The name now, or null |
previous_display_name | The name before the call |
message | A one-line account |
When it refuses
- A name with a line break or control character, or longer than 80 characters.
- No site with that
site_namein the organization, or the site is archived.
Related skills: List Sites | Read Site