{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Add a new 301 redirection rule to a site.\n\nThis endpoint allows you to define a source path (`fromUrl`) and its corresponding destination path (`toUrl`), which will dictate how traffic is rerouted on your site. This is useful for managing site changes, restructuring URLs, or handling outdated links.\n\n<Warning title=\"Enterprise Only\">This endpoint requires an Enterprise workspace.</Warning>\n\nRequired scope: `sites:write`\n","properties":{"path":{"type":"object","properties":{"site_id":{"type":"string","examples":["580e63e98c9a982ac9b8b741"],"description":"Unique identifier for a Site"}},"required":["site_id"],"additionalProperties":false},"body":{"type":"object","description":"A single redirection rule, specifying a source URL and a destination URL.","properties":{"fromUrl":{"type":"string","description":"The source URL path that will be redirected.","examples":["/mostly-harmless"]},"toUrl":{"type":"string","description":"The target URL path where the user or client will be redirected.","examples":["/earth"]}},"examples":[{"id":"42e1a2b7aa1a13f768a0042a","fromUrl":"/mostly-harmless","toUrl":"/earth"}]}},"required":["path"],"additionalProperties":false},"name":"Create a 301 redirect","id":"webflow.create-redirect","example":{"path":{"site_id":"580e63e98c9a982ac9b8b741"}},"maxRequests":1,"summary":false}}