Redirects

Update Redirect (PUT)

Update a redirect rule using PUT. The current implementation treats PUT and PATCH identically.

put/redirects/{id}

Request

Path parameters

idstring required

Redirect ID

Request body

Example request

{
  "jsonapi": {
    "version": "1.0"
  }
}

Response

Redirect updated successfully

Example response

{
  "jsonapi": {
    "version": "1.0"
  },
  "data": {
    "type": "redirects",
    "attributes": {
      "from_path": "/old-post",
      "to_path": "/new-post",
      "redirect_type": 307
    }
  }
}

Changes

No recorded changes to this operation across all 4 revisions of this API.