Grapes Knowledge Base Resource API

The Resource API from Grapes Knowledge Base — 2 operation(s) for resource.

Operations 4

POST /api/{version}/organizations/{orgId}/resources Create resource #
GET /api/{version}/organizations/{orgId}/resources Get resources #
PUT /api/{version}/organizations/{orgId}/resources/{id} Update resource #
GET /api/{version}/organizations/{orgId}/resources/{id} Get resource by id #

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/grapes-knowledge-base:grapes-knowledge-base-resource-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

grapes-knowledge-base-resource-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Grapes Resource API
  version: v1
security:
- Bearer: []
tags:
- name: Resource
paths:
  /api/{version}/organizations/{orgId}/resources:
    post:
      tags:
      - Resource
      operationId: CreateResource
      parameters:
      - name: orgId
        in: path
        required: true
        schema:
          type: string
      - name: version
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateResourceRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/CreateResourceRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/CreateResourceRequest'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ResourceDtoItemResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceDtoItemResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ResourceDtoItemResponse'
        '400':
          description: Validation failed
      summary: Create resource
      x-summary-source: derived
    get:
      tags:
      - Resource
      operationId: GetResources
      parameters:
      - name: orgId
        in: path
        required: true
        schema:
          type: string
      - name: includeData
        in: query
        schema:
          type: boolean
      - name: projectId
        in: query
        schema:
          type: string
      - name: version
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ResourceDtoListItemResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceDtoListItemResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ResourceDtoListItemResponse'
      summary: Get resources
      x-summary-source: derived
  /api/{version}/organizations/{orgId}/resources/{id}:
    put:
      tags:
      - Resource
      operationId: UpdateResource
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: orgId
        in: path
        required: true
        schema:
          type: string
      - name: version
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateResourceRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/UpdateResourceRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/UpdateResourceRequest'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ResourceDtoItemResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceDtoItemResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ResourceDtoItemResponse'
        '400':
          description: Validation failed
      summary: Update resource
      x-summary-source: derived
    get:
      tags:
      - Resource
      operationId: GetResourceById
      parameters:
      - name: orgId
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: version
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ResourceDtoItemResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceDtoItemResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ResourceDtoItemResponse'
        '404':
          description: Resource not found
      summary: Get resource by id
      x-summary-source: derived
components:
  schemas:
    ResourceDtoListItemResponse:
      type: object
      properties:
        items:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ResourceDtoItemResponse'
        totalCount:
          type: integer
          format: int32
      additionalProperties: false
    ResourceTypes:
      enum:
      - VALUE
      - KEY_VALUE
      type: string
    ResourceScopeDto:
      type: object
      properties:
        level:
          $ref: '#/components/schemas/ResourceScopeTypes'
        projectsScope:
          type:
          - array
          - 'null'
          items:
            type: string
      additionalProperties: false
    ResourceScopeTypes:
      enum:
      - Global
      - Organization
      - Project
      type: string
    CreateResourceRequest:
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
        data:
          $ref: '#/components/schemas/IResourceItem'
        scopeLevel:
          $ref: '#/components/schemas/ResourceScopeTypes'
        projectsScope:
          type:
          - array
          - 'null'
          items:
            type: string
      additionalProperties: false
    ResourceDto:
      type: object
      properties:
        id:
          type:
          - string
          - 'null'
        name:
          type:
          - string
          - 'null'
        data:
          $ref: '#/components/schemas/IResourceItem'
        scope:
          $ref: '#/components/schemas/ResourceScopeDto'
      additionalProperties: false
    IResourceItem:
      type: object
      properties:
        resourceType:
          $ref: '#/components/schemas/ResourceTypes'
      additionalProperties: false
    HateoasLink:
      type: object
      properties:
        relation:
          type:
          - string
          - 'null'
        uri:
          type:
          - string
          - 'null'
        method:
          type:
          - string
          - 'null'
      additionalProperties: false
    ResourceDtoItemResponse:
      type: object
      properties:
        item:
          $ref: '#/components/schemas/ResourceDto'
        links:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/HateoasLink'
      additionalProperties: false
    UpdateResourceRequest:
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
        type:
          $ref: '#/components/schemas/ResourceTypes'
        data:
          $ref: '#/components/schemas/IResourceItem'
        scopeLevel:
          $ref: '#/components/schemas/ResourceScopeTypes'
        projectsScope:
          type:
          - array
          - 'null'
          items:
            type: string
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: oauth2
      description: "JWT Authorization header using the Bearer scheme. \n\n Enter 'Bearer' [space] and then your token in the text input below.\n\nExample: \"Bearer 1safsfsdfdfd\""
x-provenance:
  method: harvested
  publisher: Grapes Knowledge Base
  source: https://api.data-grapes.com/swagger/v1/swagger.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)