Sonatype Nexus Routing rules API

The Routing rules API from Sonatype Nexus — 2 operation(s) for routing rules.

Operations 5

GET /v1/routing-rules List routing rules #
POST /v1/routing-rules Create a single routing rule #
DELETE /v1/routing-rules/{name} Delete a single routing rule #
GET /v1/routing-rules/{name} Get a single routing rule #
PUT /v1/routing-rules/{name} Update a single routing rule #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/sonatype-nexus-routing-rules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.

OpenAPI Specification

sonatype-nexus-routing-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    name: Sonatype Community Maintainers
    url: https://github.com/sonatype-nexus-community
  description: This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.91.0-07.
  license:
    name: Apache-2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  title: Sonatype Nexus Repository Manager assets Routing rules API
  version: 3.91.0-07
servers:
- url: /service/rest/
security:
- BasicAuth: []
tags:
- name: Routing rules
paths:
  /v1/routing-rules:
    get:
      operationId: getRoutingRules
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/RoutingRuleXO'
                type: array
          description: successful operation
        '403':
          content: {}
          description: Insufficient permissions to read routing rules
      summary: List routing rules
      tags:
      - Routing rules
    post:
      operationId: createRoutingRule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoutingRuleXO'
        description: A routing rule configuration
        required: true
      responses:
        '204':
          content: {}
          description: Routing rule was successfully created
        '400':
          content: {}
          description: A routing rule with the same name already exists or required parameters missing
        '403':
          content: {}
          description: Insufficient permissions to create routing rule
      summary: Create a single routing rule
      tags:
      - Routing rules
      x-codegen-request-body-name: body
  /v1/routing-rules/{name}:
    delete:
      operationId: deleteRoutingRule
      parameters:
      - description: The name of the routing rule to delete
        in: path
        name: name
        required: true
        schema:
          type: string
      responses:
        '204':
          content: {}
          description: Routing rule was successfully deleted
        '403':
          content: {}
          description: Insufficient permissions to delete routing rules
        '404':
          content: {}
          description: Routing rule not found
      summary: Delete a single routing rule
      tags:
      - Routing rules
    get:
      operationId: getRoutingRule
      parameters:
      - description: The name of the routing rule to get
        in: path
        name: name
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoutingRuleXO'
          description: successful operation
        '403':
          content: {}
          description: Insufficient permissions to read routing rules
        '404':
          content: {}
          description: Routing rule not found
      summary: Get a single routing rule
      tags:
      - Routing rules
    put:
      operationId: updateRoutingRule
      parameters:
      - description: The name of the routing rule to update
        in: path
        name: name
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoutingRuleXO'
        description: A routing rule configuration
        required: true
      responses:
        '204':
          content: {}
          description: Routing rule was successfully updated
        '400':
          content: {}
          description: Another routing rule with the same name already exists or required parameters missing
        '403':
          content: {}
          description: Insufficient permissions to edit routing rules
        '404':
          content: {}
          description: Routing rule not found
      summary: Update a single routing rule
      tags:
      - Routing rules
      x-codegen-request-body-name: body
components:
  schemas:
    RoutingRuleXO:
      properties:
        description:
          type: string
        matchers:
          description: Regular expressions used to identify request paths that are allowed or blocked (depending on mode)
          items:
            type: string
          type: array
        mode:
          description: Determines what should be done with requests when their path matches any of the matchers
          enum:
          - BLOCK
          - ALLOW
          type: string
        name:
          pattern: ^[a-zA-Z0-9\-]{1}[a-zA-Z0-9_\-\.]*$
          type: string
      type: object
  securitySchemes:
    BasicAuth:
      scheme: basic
      type: http
x-original-swagger-version: '2.0'