Leo1 Switch Feature API

The Switch Feature API from Leo1 — 2 operation(s) for switch feature.

Operations 4

GET /api/v1/switch_feature/ Get Switch Features #
POST /api/v1/switch_feature/ Create Switch Feature #
DELETE /api/v1/switch_feature/ Bulk Delete Switch Features #
PUT /api/v1/switch_feature/update_bulk_switch_feature Bulk Update Switch Features #

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/leo1-switch-feature-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

leo1-switch-feature-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: leofees_backend Switch Feature API
  version: version
  description: General system endpoints for the API.
servers:
- url: https://api.leo1.in
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Switch Feature
paths:
  /api/v1/switch_feature/:
    get:
      tags:
      - Switch Feature
      summary: Get Switch Features
      operationId: get_switch_features_api_v1_switch_feature__get
      parameters:
      - required: false
        schema:
          title: Switch Feature Ids
          type: string
          default: ''
        name: switch_feature_ids
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - APIKeyHeader: []
    post:
      tags:
      - Switch Feature
      summary: Create Switch Feature
      operationId: create_switch_feature_api_v1_switch_feature__post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSwitchFeatureRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - APIKeyHeader: []
    delete:
      tags:
      - Switch Feature
      summary: Bulk Delete Switch Features
      operationId: bulk_delete_switch_features_api_v1_switch_feature__delete
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteSwitchFeatureRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - APIKeyHeader: []
  /api/v1/switch_feature/update_bulk_switch_feature:
    put:
      tags:
      - Switch Feature
      summary: Bulk Update Switch Features
      operationId: bulk_update_switch_features_api_v1_switch_feature_update_bulk_switch_feature_put
      requestBody:
        content:
          application/json:
            schema:
              title: Request Data
              type: array
              items:
                $ref: '#/components/schemas/UpdateSwitchFeatureRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - APIKeyHeader: []
components:
  schemas:
    DeleteSwitchFeatureRequest:
      title: DeleteSwitchFeatureRequest
      required:
      - switch_feature_ids
      type: object
      properties:
        switch_feature_ids:
          title: Switch Feature Ids
          type: array
          items:
            type: integer
          description: switch_feature_ids are required
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          title: Detail
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
    UpdateSwitchFeatureRequest:
      title: UpdateSwitchFeatureRequest
      required:
      - switch_feature_id
      type: object
      properties:
        switch_feature_id:
          title: Switch Feature Id
          type: integer
          description: switch_feature_id is required
        feature_name:
          title: Feature Name
          type: string
          description: feature_name is optional
        enabled:
          title: Enabled
          type: boolean
          description: enabled is optional
    ValidationError:
      title: ValidationError
      required:
      - loc
      - msg
      - type
      type: object
      properties:
        loc:
          title: Location
          type: array
          items:
            anyOf:
            - type: string
            - type: integer
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
    CreateSwitchFeatureRequest:
      title: CreateSwitchFeatureRequest
      required:
      - feature_name
      type: object
      properties:
        feature_name:
          title: Feature Name
          type: string
          description: Feature name is required
        enabled:
          title: Enabled
          type: boolean
          description: enabled is optional
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: secret-key