Gajo · Schema

RoutingRulesCreatedResult

Envelope with newly created routing rules.

URL ShortenersAnalyticsDeveloper Tool

Properties

Name Type Description
success object
message stringnull Human-readable status or error message. Often `null` on reads.
data object
View JSON Schema on GitHub

JSON Schema

gajo-io-routing-rules-created-result-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gajo-io/json-schema/gajo-io-routing-rules-created-result-schema.json",
  "title": "RoutingRulesCreatedResult",
  "description": "Envelope with newly created routing rules.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gajo-io-routing-rules-api-openapi.yml#/components/schemas/RoutingRulesCreatedResult",
  "allOf": [
    {
      "$ref": "#/$defs/ApiResult"
    },
    {
      "type": "object",
      "required": [
        "data"
      ],
      "properties": {
        "success": {
          "const": true
        },
        "data": {
          "$ref": "#/$defs/RoutingRulesCreated"
        }
      }
    }
  ],
  "$defs": {
    "ApiResult": {
      "type": "object",
      "description": "Envelope shared by every response.",
      "required": [
        "success"
      ],
      "properties": {
        "success": {
          "type": "boolean",
          "description": "`true` when the request succeeded."
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "Human-readable status or error message. Often `null` on reads."
        },
        "data": {
          "description": "Operation-specific payload; `null` or absent when there is nothing to return."
        }
      }
    },
    "DeviceClass": {
      "type": "string",
      "enum": [
        "Mobile",
        "Tablet",
        "Desktop"
      ],
      "description": "Device class for per-URL `Device` rules."
    },
    "RoutingRule": {
      "type": "object",
      "required": [
        "id",
        "ruleType",
        "priority",
        "active",
        "deviceType",
        "targetUrl",
        "variantName",
        "splitPercentage",
        "createdDate"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Rule ID, used by `PUT`/`DELETE /urls/{code}/routing/{ruleId}`."
        },
        "ruleType": {
          "$ref": "#/$defs/RoutingType"
        },
        "priority": {
          "type": "integer",
          "minimum": 0,
          "description": "Position within the batch the rule was created in (0-based)."
        },
        "active": {
          "type": "boolean"
        },
        "deviceType": {
          "oneOf": [
            {
              "$ref": "#/$defs/DeviceClass"
            },
            {
              "type": "null"
            }
          ],
          "description": "Set on `Device` rules; `null` on `AbTest` rules."
        },
        "targetUrl": {
          "type": "string",
          "description": "Destination for matching clicks."
        },
        "variantName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Set on `AbTest` rules."
        },
        "splitPercentage": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "maximum": 100,
          "description": "Set on `AbTest` rules."
        },
        "createdDate": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "RoutingRulesCreated": {
      "type": "object",
      "required": [
        "shortCode",
        "ruleType",
        "rules"
      ],
      "properties": {
        "shortCode": {
          "type": "string"
        },
        "ruleType": {
          "$ref": "#/$defs/RoutingType"
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RoutingRule"
          },
          "description": "The rules created by this request."
        }
      }
    },
    "RoutingType": {
      "type": "string",
      "enum": [
        "Device",
        "AbTest"
      ],
      "description": "`Device` routes by device class; `AbTest` splits traffic by percentage."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/gajo-io-routing-rules-created-result"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.