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": "/8977b872-62c1-4f5e-995e-6ab882ba2e4b/bc5ed70d-0957-4e8e-a7cf-996d3c81513c/80cd664f-3529-4ee3-8a0b-a13ecc3a7187",
  "content_id": "fe89ecda-23ec-46af-b31c-44d671fc1cb0",
  "document_type": "redirect",
  "schema_name": "redirect",
  "publishing_app": "interdum. consectetur at ac nisl bibendum. massa suscipit dolor vestibulum. ac ultricies ipsum libero. ac hendrerit, egestas. Ut ac fames tristique Nam Suspendisse tristique eu sollicitudin Nam sed vel netus tempor lectus in, cursus nibh. eu non volutpat sagittis",
  "update_type": "minor",
  "redirects": [
    {
      "path": "/86b82417-0a1b-4bc5-85b0-0194a90123b5/9250f5fa-8bb6-4c7d-9d6e-89f9368edadb",
      "type": "prefix",
      "destination": "/7193207e-6922-4658-b0a5-25481443cd56/19cfa67e-c333-471b-b58f-93dd7acb4cf4/5011fede-73f3-4a27-b315-97bb273c2e6e/cce1d9a2-8eeb-4a56-aa37-c7b087b245ae/df7ada44-2269-41c9-b5a2-0626fab36cca",
      "segments_mode": "ignore"
    },
    {
      "path": "/04008607-37c1-4114-a0e2-253e599b518c/9016a1df-4ba5-42cd-9047-179f409192eb/1445a903-1b55-4c38-9470-193c408d498c/74febc41-302e-451a-ac54-3fcdabcf3c3e",
      "type": "prefix",
      "destination": "/018de7bd-39b7-43e5-80bc-cd7f427c150c/80bdb577-3963-4883-b969-5f422fcfbc79",
      "segments_mode": "ignore"
    },
    {
      "path": "/d943c628-2dee-41be-852d-c8ac5c14499b/aec97e3e-4b96-4838-976f-30b4150f3aff/8ee9c8cf-e485-4cb6-9e24-775ce11f0417/31c6e38f-09e8-4040-91e9-2606ec72c722/f799b118-7985-4022-b95e-8b63bf3c526e",
      "type": "prefix",
      "destination": "/fdc6b6b9-e80c-4ee6-830d-e50ed9c9b7e8/f88f6458-2b00-46c4-852a-71a590c34e88/d8150c01-cec7-4298-bc97-e6073e93a2eb/72e55d2a-2513-4b8c-85d8-f56c2a49b130",
      "segments_mode": "ignore"
    },
    {
      "path": "/28af817e-9178-4f36-a833-714146c89a1e/da4477d8-dc68-41cd-97a6-30420f153e8e/c0c8107c-c484-4ed4-82bb-49ec535ac5c1/e6e667d9-b527-46a0-b916-856725f0303a",
      "type": "exact",
      "destination": "https://ufgd.md.jsuk.campaign.gov.uk/3362886e-0f5b-4fe1-8a8d-70c929701d4a",
      "segments_mode": "preserve"
    },
    {
      "path": "/7aa2e6dc-4c7b-488a-8aff-2f49fa4f1069",
      "type": "exact",
      "destination": "https://jb.campaign.gov.uk/bf03e14a-51b1-4f9c-b67c-e66c4ee1ad96/9e5c72f6-c5ab-42ea-9bf2-5c59ae255666",
      "segments_mode": "ignore"
    }
  ]
}

This schema does not allow for setting of links.