Request

GET https://v2.api.uberflip.com/hubs/{hubId}/redirect-rules
curl -H "Authorization: Bearer [Token]" \
-i https://v2.api.uberflip.com/hubs/24601/redirect-rules
import requests

headers = {
    'Authorization': 'Bearer [Token]',
}

response = requests.get('https://v2.api.uberflip.com/hubs/24601/redirect-rules', headers=headers)
// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://v2.api.uberflip.com/hubs/24601/redirect-rules');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');


$headers = array();
$headers[] = 'Authorization: Bearer [Token]';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
var request = require('request');

var headers = {
    'Authorization': 'Bearer [Token]'
};

var options = {
    url: 'https://v2.api.uberflip.com/hubs/24601/redirect-rules',
    headers: headers
};

function callback(error, response, body) {
    if (!error && response.statusCode == 200) {
        console.log(body);
    }
}

request(options, callback);

Request Parameters

Path Parameters

Description

hubId

The unique identifier of the hub

Query Parameters

Description

limit

Number of results to return

page

Page to show

enabled

Return only results matching this Boolean field

redirect_stage

Return only rules with specific stage value (dispatch, not_found)

sort

Sort results by one or more of the following fields:

  • priority
  • id
  • created_at
  • modified_at

Note: Add - before the value to have the response returned in descending/reverse-alphabetical order.

page

Page to show

query

Filter results by querying the following fields:

  • source_path_pattern
  • source_parameters_pattern
  • destination_path_template
  • destination_parameters_template