Netter ontology-relationships API

The ontology-relationships API from Netter — 3 operation(s) for ontology-relationships.

Operations 5

GET /api/v1/ontology/relationships List Relationships #
POST /api/v1/ontology/relationships Create Relationship #
GET /api/v1/ontology/entities/{entity_id}/relationships List Entity Relationships #
PATCH /api/v1/ontology/relationships/{relationship_id} Update Relationship #
DELETE /api/v1/ontology/relationships/{relationship_id} Delete Relationship #

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/netter-ontology-relationships-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

netter-ontology-relationships-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DMI Backend actions Ontology Relationships API
  version: 0.1.0
servers:
- url: https://api.netter.ai
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: ontology-relationships
paths:
  /api/v1/ontology/relationships:
    get:
      tags:
      - ontology-relationships
      summary: List Relationships
      description: List all relationships for the company.
      operationId: list_relationships_api_v1_ontology_relationships_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/RelationshipRead'
                type: array
                title: Response List Relationships Api V1 Ontology Relationships Get
    post:
      tags:
      - ontology-relationships
      summary: Create Relationship
      description: Manually create a relationship (and its inverse). Requires admin/owner.
      operationId: create_relationship_api_v1_ontology_relationships_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelationshipCreate'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelationshipRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/ontology/entities/{entity_id}/relationships:
    get:
      tags:
      - ontology-relationships
      summary: List Entity Relationships
      description: List relationships for one entity (both directions).
      operationId: list_entity_relationships_api_v1_ontology_entities__entity_id__relationships_get
      parameters:
      - name: entity_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Entity Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RelationshipRead'
                title: Response List Entity Relationships Api V1 Ontology Entities  Entity Id  Relationships Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/ontology/relationships/{relationship_id}:
    patch:
      tags:
      - ontology-relationships
      summary: Update Relationship
      description: Update relationship name, type, or description. Requires admin/owner.
      operationId: update_relationship_api_v1_ontology_relationships__relationship_id__patch
      parameters:
      - name: relationship_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Relationship Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelationshipUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelationshipRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - ontology-relationships
      summary: Delete Relationship
      description: Delete a relationship and its paired inverse. Requires admin/owner.
      operationId: delete_relationship_api_v1_ontology_relationships__relationship_id__delete
      parameters:
      - name: relationship_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Relationship Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RelationshipRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        company_id:
          type: string
          format: uuid
          title: Company Id
        from_entity_id:
          type: string
          format: uuid
          title: From Entity Id
        from_entity_name:
          type: string
          title: From Entity Name
          default: ''
        to_entity_id:
          type: string
          format: uuid
          title: To Entity Id
        to_entity_name:
          type: string
          title: To Entity Name
          default: ''
        name:
          type: string
          title: Name
        relationship_type:
          type: string
          title: Relationship Type
        cardinality:
          type: string
          title: Cardinality
        from_key:
          type: string
          title: From Key
        to_key:
          type: string
          title: To Key
        description:
          type: string
          title: Description
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - company_id
      - from_entity_id
      - to_entity_id
      - name
      - relationship_type
      - cardinality
      - from_key
      - to_key
      - description
      - created_at
      - updated_at
      title: RelationshipRead
      description: Full relationship for GET endpoints.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    RelationshipUpdate:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        relationship_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Relationship Type
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
      type: object
      title: RelationshipUpdate
      description: Input for PATCH /ontology/relationships/{id}.
    RelationshipCreate:
      properties:
        from_entity_id:
          type: string
          format: uuid
          title: From Entity Id
        to_entity_id:
          type: string
          format: uuid
          title: To Entity Id
        name:
          type: string
          title: Name
        relationship_type:
          type: string
          title: Relationship Type
        cardinality:
          type: string
          title: Cardinality
        from_key:
          type: string
          title: From Key
        to_key:
          type: string
          title: To Key
        description:
          type: string
          title: Description
          default: ''
      type: object
      required:
      - from_entity_id
      - to_entity_id
      - name
      - relationship_type
      - cardinality
      - from_key
      - to_key
      title: RelationshipCreate
      description: Input for POST /ontology/relationships.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError