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

ParameterTypeDescription
site_namestringThe site, as List Sites reports its site_name. Not its display name
display_namestring or nullThe 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

FieldDescription
successtrue
changedfalse when the site already had that name
site_nameThe site
display_nameThe name now, or null
previous_display_nameThe name before the call
messageA 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_name in the organization, or the site is archived.

Related skills: List Sites | Read Site