---
title: "302/3XX Redirects to the given URL."
url: "https://seriousmonkeybusiness.shermett.me/apis/httpbinorg-0/versions/cf5887fc-2a8e-440f-bf06-cb4d956f625f/operations/put_redirect-to"
---

> Full API specification: https://seriousmonkeybusiness.shermett.me/apis/httpbinorg-0/versions/cf5887fc-2a8e-440f-bf06-cb4d956f625f.md

# 302/3XX Redirects to the given URL.

`PUT` `/redirect-to`

Operation ID: `put_redirect-to`

## Request body (required)

Content types: `application/x-www-form-urlencoded`

## Responses

- `302` - A redirection.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: httpbin.org
  version: 0.9.2
servers:
  - url: https://httpbin.org
paths:
  /redirect-to:
    put:
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              properties:
                status_code:
                  type: integer
                url:
                  type: string
              required:
                - url
              type: object
        required: true
      responses:
        "302":
          description: A redirection.
      summary: 302/3XX Redirects to the given URL.
      tags:
        - Redirects
      operationId: put_redirect-to
```
