Sites
Rename a site
Change a site's link name. The old link redirects to the new one for 30 days. On the Free plan a site can be renamed once every 30 days.
AuthorizationBearer <token>
An API key from Settings in the dashboard (fpk_...), or an OAuth access token from the MCP sign-in.
In: header
Path Parameters
sitestring
The site's id, or its link name (the part before .flatpage.page).
linkNamestring
Response Body
curl -X PUT "https://flatpage.app/v1/sites/spring-menu/link-name" \ -H "Content-Type: application/json" \ -d '{ "linkName": "summer-menu" }'{
"slug": "string",
"url": "http://example.com",
"oldSlug": "string",
"redirectUntil": "2019-08-24T14:15:22Z"
}{
"error": "site not found"
}{
"error": "site not found"
}{
"error": "site not found"
}{
"error": "site not found"
}{
"error": "site not found"
}{
"error": "site not found"
}