**Version: 202201**

# Update Redirect

**PUT** `/openapi/2022-01/redirects/:id`

Update the details of an existing url redirect using its unique identifier.

## Request

**Path Parameters**

- `id` string (required)

  Redirect‘s ID

**application/json**

**Body | Example**

**Body**

- `from_url` string (required)

  Original URL, for example: `/collections/hot-selling`
- `redirect_url` string (required)

  Redirected URL, for example: `/collections/test1567`
- `status` string (required)

  The status of the redirect:
  - `open`: available
  - `close`: unavailable

```json
{
  "from_url": "string",
  "redirect_url": "string",
  "status": "string"
}
```

## Responses

**200 | 404 | 422**

200

**application/json**

No schema

404

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "Data not found"
  ]
}
```

```json
{
  "errors": [
    "Data not found"
  ]
}
```

422

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "Target is invalid"
  ]
}
```

```json
{
  "errors": [
    "Target is invalid"
  ]
}
```
