Response

HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": [
        {
          "id": 7424,
          "hub_id": 24601,
          "enabled": 1,
          "priority": 1,
          "redirect_type": "permanent",
          "parameters_syntax": "exact",
          "syntax": "exact",
          "source_scheme": null,
          "source_path_pattern": null,
          "source_parameters_pattern": null,
          "source_remove_path_trailing_slash": 1,
          "destination_type": "hub",
          "destination_path_template": null,
          "destination_hub_id": 7624,
          "destination_collection_id": null,
          "destination_author_id": null,
          "destination_parameters_template": null,
          "destination_append_source_parameters": 0,
          "created_at": "2016-12-18T03:51:40-0500",
          "modified_at": "2016-12-18T03:51:40-0500"
        },
        {
          "id": 7428,
          "hub_id": 24601,
          "enabled": 1,
          "priority": 1,
          "redirect_type": "permanent",
          "parameters_syntax": "exact",
          "syntax": "exact",
          "source_scheme": null,
          "source_path_pattern": null,
          "source_parameters_pattern": null,
          "source_remove_path_trailing_slash": 1,
          "destination_type": "author",
          "destination_path_template": null,
          "destination_hub_id": 7624,
          "destination_collection_id": null,
          "destination_author_id": 13703,
          "destination_parameters_template": null,
          "destination_append_source_parameters": 0,
          "created_at": "2016-12-18T03:51:42-0500",
          "modified_at": "2016-12-18T03:51:42-0500"
        }
    ],
    "meta": {
        ...
    }
}

The response will contain a redirect rules collection:

Body ParametersTypeDescription
dataArrayThe collection of redirect rules
metaObjectSee: Pagination

Each rule in the collection will have properties:

Body ParametersTypeDescription
idIntegerThe asset identifier
hub_idIntegerThe hub identifier
enabledBooleanWhether the rule is enabled
priorityIntegerThe priority of the redirect rule
redirect_typeStringThe type of redirect (permanent, temporary)
redirect_stageStringThe stage of redirect (dispatch, not_found)
parameters_syntaxStringThe syntax used to match parameters (exact, regex, starts)
syntaxStringThe syntax used to match the path (exact, regex, starts)
source_schemeStringThe source path header (http, https)
source_path_patternStringThe source path URL
source_parameters_patternStringThe source query parameters regex pattern
source_remove_path_trailing_slashBooleanWhether the rule removes trailing slash
destination_typeStringThe type of destination (path, hub, stream, author)
destination_path_templateStringThe destination path URL
destination_hub_idIntegerThe destination hub identifier
destination_collection_idIntegerThe destination stream identifier
destination_author_idIntegerThe destination author identifier
destination_parameters_templateStringThe destination path query parameters
destination_append_source_parametersBooleanWhether the source query parameter(s) should be appended to the destination
created_atDateThe rule created date
modified_atDateThe rule last modified date