Redirects

Create Redirect

Create a new redirect rule. Required Fields: - from_path: Source path to redirect from - to_path: Target path to redirect to Response Codes: - 201: Redirect created successfully - 409: from_path already exists

post/redirects

Request

Request body

Example request

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

Response

Redirect created 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.