Table of contents

Schema: redirect

Frontend schema

This schema doesn’t have a frontend schema. This means that it should not be used by rendering applications.


Publisher content schema

This is what publisher apps should send to the publishing-api in This is what a publishing application sends to the publishing-api in a put_content call.

Attributes

base_path
string
A path only. Query string and/or fragment are not allowed.
content_id
string

document_type
string

Allowed values: redirect
public_updated_at
string

publishing_app
string

redirects
array

schema_name
string

Allowed values: redirect
update_type

Allowed values: major, minor, republish

View this schema on GitHub

Random example

{
  "base_path": "/98065c4b-a894-406f-8c18-69e496aea8d3/b6c80452-2e06-4e39-ab40-28c06340ae65/81a8d315-f094-4fbf-810a-3f1e1ce7f4de/4038b2d7-fb03-44d7-8c2e-33a5b6bb536b",
  "content_id": "2bfc9d15-0b93-4ea8-8789-7976d68a30d3",
  "document_type": "redirect",
  "schema_name": "redirect",
  "publishing_app": "adipiscing molestie ac purus vel scelerisque. eu nisl volutpat suscipit ipsum eu nibh sagittis sollicitudin fames in,",
  "redirects": [
    {
      "path": "/c87af26a-bad6-45c2-b08b-3f45e80d20ce/99db7a50-7e2d-4e0c-a9da-ed2d6f7246bb",
      "type": "prefix",
      "destination": "/f88eae79-b6e5-4ce2-9223-6a5022aa52a6/0a23e08a-b460-44f0-85d9-0cd4cb6fb531"
    },
    {
      "path": "/f350e2d4-2507-4808-a3a1-7e27d36bc81e/1ebf91d4-1fa7-4711-b436-3a4b6e207350/a3b4b0fb-ecc1-4d60-b5f6-271e175c748a/51615509-ee16-4b83-ba56-22a9ec1e3634/365e059f-6d88-4eca-909e-f515944aad5e",
      "type": "exact",
      "destination": "/0c9385eb-a71d-4818-8bdc-d3b8f030ff8a/52f36e68-ca00-4ac1-b6f0-725e02a2e5fb/18f12ea6-77ca-4724-8e17-ec9ac0ad7a1a/a0a21a31-e884-4ec9-bd25-af1088523a6a/2deaf37e-51a7-4efd-871c-0dc878b97b6d"
    },
    {
      "path": "/b6ef8410-62fc-428f-b53d-96aadfb84cc5/fa7c2f1c-e3de-41a8-a635-d49db99cbc4a/0d0962c1-4b3a-49da-b07b-97eaa0cf0147",
      "type": "exact",
      "destination": "/7364ce64-f1dd-4919-a5dd-ab020cb749d8/dcad8b34-170b-4a04-8c8f-c7400221bd0e/ea72d9b3-52b7-4ccb-8229-54158e8444b0/a5fd4228-6b1a-4c93-9482-b3f152db2eba/0bb78204-5eb0-4018-8e4e-89b6597c7447",
      "segments_mode": "ignore"
    },
    {
      "path": "/8c1b259b-de99-4f70-82aa-0a45f49d8de3/d20c4e24-2e55-43d6-bf60-0c7f973aa332/0b30cfe4-0bf7-4840-9219-32ba0b58691d/f8320510-5041-4497-b8ba-93ff84c19484",
      "type": "prefix",
      "destination": "/b3142ed9-41e1-4202-98ba-7f270188d1d8/b6991784-c3b3-44a9-952f-3944a84b3826/addd5125-0ff0-4465-9fe7-2ed9fd460fe1/203d3fbd-c33f-4d68-ba56-658627aaaefc/3f46128e-4136-4f4b-b9ab-63ab1c49e841"
    },
    {
      "path": "/6334a071-fe17-402d-86a6-d2618b31c7df/f280b5f4-31c4-4b06-96f7-8a31d7310c50/0c6c5c23-2592-44a8-8c00-7b0078e6a1d6/9ad926ff-f3ed-4b27-a29d-e0e8204c1b92",
      "type": "exact",
      "destination": "https://wfpszg.nsbiatg.vgmhzjbe.gov.uk/fd384e2f-a7fb-405e-8740-be0c7f80fd20"
    },
    {
      "path": "/c3defa1a-321c-489b-a52f-118df464fd2b/710f8097-32ae-4086-8374-a98ca44df59b",
      "type": "exact",
      "destination": "/d6841ff6-a716-45b2-86e2-6a27d0ee4c1b",
      "segments_mode": "preserve"
    },
    {
      "path": "/739a1e61-022b-4d8a-bff8-7be990d103f7/53fb427d-ef2b-414b-8151-074d22e8d362/f9c8a295-97d0-42b6-a18d-daf6ea6854c5/a9ac0a52-6da7-41a0-9335-e0523762eee3",
      "type": "prefix",
      "destination": "https://sanzhb.qpynzmuc.kuc.tux.gov.uk/ac361182-0aef-411b-bc8b-c54eea515490"
    },
    {
      "path": "/d97d54d5-c5c5-4670-8bbd-6dddbc3a2ed3",
      "type": "exact",
      "destination": "https://qis.jhnfxw.gov.uk/894984b0-125d-4902-8e7b-d3d50ee8f4cf/3b096bfc-d7ab-406a-8a2a-4d92d5797e66/ca754ec3-5e18-48be-8450-b64054b8fe70",
      "redirect_type": "temporary",
      "segments_mode": "preserve"
    }
  ]
}

This schema does not allow for setting of links.