---
updatedAt: 2026-10-05T21:33:06.000Z
agentTools:
  projectIndex: https://developer.duda.co/llms.txt
---

# Update Redirect rule

Updates one of a site's URL rules.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Duda Partner API",
    "version": "1.0.0",
    "description": "REST API for Duda partners. Manage accounts, sites, content, collections, eCommerce, bookings, memberships and webhooks on the Duda platform."
  },
  "servers": [
    {
      "url": "https://api.duda.co",
      "description": "Production (US)"
    },
    {
      "url": "https://api.eu.duda.co",
      "description": "Production (EU)"
    },
    {
      "url": "https://api-sandbox.duda.co",
      "description": "Sandbox"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/api/sites/multiscreen/site/{site_name}/urlrules/{id}": {
      "put": {
        "tags": [
          "Url Rules"
        ],
        "summary": "Update Redirect rule",
        "description": "Updates one of a site's URL rules.",
        "operationId": "updateUrlRedirectRule",
        "parameters": [
          {
            "$ref": "#/components/parameters/SiteName"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RedirectRuleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RedirectRuleResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "BadRequest": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal Server Error"
      },
      "MethodNotAllowed": {
        "description": "Method Not Allowed"
      },
      "PaymentRequired": {
        "description": "Payment Required",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Too many requests. The rate limit was exceeded.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorRDT": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "enum": [
              "AccessForbidden",
              "ResourceNotExist",
              "ResourceAlreadyExist",
              "InvalidInput",
              "InvalidState",
              "InternalError",
              "UnAuthorized",
              "TooManyRequests",
              "EmailDomainNotValidated",
              "InsufficientCredits"
            ]
          },
          "message": {
            "type": "string"
          }
        }
      },
      "RedirectRuleRequest": {
        "type": "object",
        "properties": {
          "response_code": {
            "type": "integer",
            "format": "int32",
            "description": "Http response status code \nSupported values: \n- 301 (Moved Permanently)\n- 302 (Found)\nIf not specified, defaults to 301",
            "example": 301
          },
          "source": {
            "type": "string",
            "description": "Source path of the redirect \nSpecified page must not exist on site and not be blank. Source page acts as secondary identifier: you can’t have two redirects with same source page ",
            "example": " 'old-page-url', '/old-page-url' "
          },
          "target": {
            "type": "string",
            "description": "Target path of the redirect. Should correspond to an existing page on the site or an external url \n\nIf external url is provided, must start with “http/https” \nExternal domain is not validated\n",
            "example": "'about', '/about', 'home', '/' (alternative to ‘home’), 'https://www.google.com'"
          }
        },
        "required": [
          "source",
          "target"
        ]
      },
      "RedirectRuleResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of redirect rule for referencing single object"
          },
          "response_code": {
            "type": "integer",
            "format": "int32",
            "description": "Http response status code",
            "example": 301
          },
          "source": {
            "type": "string",
            "description": "Source path of the redirect",
            "example": " 'missing-page', 'old-page' "
          },
          "target": {
            "type": "string",
            "description": "Target path of the redirect",
            "example": " 'home', 'https://google.com' "
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "description": "API username and password. Find them in the API access section of the Business tools tab in the platform.",
        "scheme": "basic"
      }
    },
    "parameters": {
      "SiteName": {
        "name": "site_name",
        "in": "path",
        "description": "The site's unique name (its ID), returned when the site is created.",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    }
  }
}
```