SAP Business Technology Platform Repository API

The Repository API from SAP Business Technology Platform — 2 operation(s) for repository.

GitHub OpenAPI

Operations 5

POST /admin/repositories On-board a new GitOps repository #
GET /admin/repositories List all GitOps repositories for a tenant #
GET /admin/repositories/{repositoryName} Get the access details for a repository #
PATCH /admin/repositories/{repositoryName} Update the repository credentials #
DELETE /admin/repositories/{repositoryName} Off-board a repository #

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/sap-btp:sap-btp-repository-api"
All apis
curl "https://apis.io/api/v1/apis?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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

sap-btp-repository-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sap Btp Repository API
  version: 2.42.0
  description: 'Operations tagged Repository across 2 of this provider''s published API definitions: ai-core.yaml, sap-btp-ai-core-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
  description: Production endpoint for SAP AI Core
  variables:
    region:
      enum:
      - prod.eu-central-1.aws
      - prodeuonly.eu-central-1.aws
      - prod.us-east-1.aws
      - prod.ap-northeast-1.aws
      - prod-ap11.ap-southeast-1.aws
      - prod-ap20.australiaeast.azure
      - prod.ap-southeast-2.aws
      - prod-eu20.westeurope.azure
      - prod-ap30.australia-southeast1.gcp
      - prod-in30.asia-south1.gcp
      - prod-sa30.me-central2.gcp
      - prod-us21.eastus.azure
      - prod-eu30.europe-west3.gcp
      - prod-us30.us-central1.gcp
      - prod-br10.sa-east-1.aws
      default: prod.eu-central-1.aws
security:
- Oauth2: []
tags:
- name: Repository
paths:
  /admin/repositories:
    post:
      tags:
      - Repository
      summary: On-board a new GitOps repository
      description: On-board a new GitOps repository as specified in the content payload
      operationId: kubesubmit.v4.repositories.create
      parameters:
      - $ref: '#/components/parameters/BckndtokenHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BckndArgoCDRepositoryData'
      responses:
        '200':
          description: The repository has been on-boarded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BckndArgoCDRepositoryCreationResponse'
        '409':
          description: The provided repository already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BckndErrorResponse'
        '400':
          $ref: '#/components/responses/BckndBadRequest'
        default:
          $ref: '#/components/responses/BckndCommonError'
    get:
      tags:
      - Repository
      summary: List all GitOps repositories for a tenant
      description: Retrieve a list of all GitOps repositories for a tenant.
      operationId: kubesubmit.v4.repositories.get_all
      parameters:
      - $ref: '#/components/parameters/BckndtokenHeader'
      - $ref: '#/components/parameters/Bckndtop'
      - $ref: '#/components/parameters/Bckndskip'
      - $ref: '#/components/parameters/Bckndcount'
      responses:
        '200':
          description: Returns a list of all GitOps repositories for the tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BckndArgoCDRepositoryDataResponse'
        '400':
          $ref: '#/components/responses/BckndBadRequest'
        default:
          $ref: '#/components/responses/BckndCommonError'
    servers:
    - url: https://api.ai.{region}.ml.hana.ondemand.com/v2
      description: Production endpoint for SAP AI Core
      variables:
        region:
          enum:
          - prod.eu-central-1.aws
          - prodeuonly.eu-central-1.aws
          - prod.us-east-1.aws
          - prod.ap-northeast-1.aws
          - prod-ap11.ap-southeast-1.aws
          - prod-ap20.australiaeast.azure
          - prod.ap-southeast-2.aws
          - prod-eu20.westeurope.azure
          - prod-ap30.australia-southeast1.gcp
          - prod-in30.asia-south1.gcp
          - prod-sa30.me-central2.gcp
          - prod-us21.eastus.azure
          - prod-eu30.europe-west3.gcp
          - prod-us30.us-central1.gcp
          - prod-br10.sa-east-1.aws
          default: prod.eu-central-1.aws
  /admin/repositories/{repositoryName}:
    parameters:
    - $ref: '#/components/parameters/BckndrepositoryName'
    - $ref: '#/components/parameters/BckndtokenHeader'
    get:
      tags:
      - Repository
      summary: Get the access details for a repository
      description: Retrieve the access details for a repository if it exists.
      operationId: kubesubmit.v4.repositories.get
      responses:
        '200':
          description: The repository details have been found and returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BckndArgoCDRepositoryDetails'
        '400':
          $ref: '#/components/responses/BckndBadRequest'
        '404':
          $ref: '#/components/responses/BckndNotFound'
        default:
          $ref: '#/components/responses/BckndCommonError'
    patch:
      tags:
      - Repository
      summary: Update the repository credentials
      description: Update the referenced repository credentials to synchronize a repository.
      operationId: kubesubmit.v4.repositories.update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BckndArgoCDRepositoryCredentials'
      responses:
        '200':
          description: The repository credentials have been updated and will eventually be synced.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BckndArgoCDRepositoryModificationResponse'
        '404':
          $ref: '#/components/responses/BckndNotFound'
        '400':
          $ref: '#/components/responses/BckndBadRequest'
        default:
          $ref: '#/components/responses/BckndCommonError'
    delete:
      tags:
      - Repository
      summary: Off-board a repository
      description: Remove a repository from GitOps.
      operationId: kubesubmit.v4.repositories.delete
      responses:
        '200':
          description: The repository has been off-boarded successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BckndArgoCDRepositoryDeletionResponse'
        '404':
          $ref: '#/components/responses/BckndNotFound'
        '400':
          description: The request was malformed and could thus not be processed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BckndErrorResponse'
        default:
          $ref: '#/components/responses/BckndCommonError'
    servers:
    - url: https://api.ai.{region}.ml.hana.ondemand.com/v2
      description: Production endpoint for SAP AI Core
      variables:
        region:
          enum:
          - prod.eu-central-1.aws
          - prodeuonly.eu-central-1.aws
          - prod.us-east-1.aws
          - prod.ap-northeast-1.aws
          - prod-ap11.ap-southeast-1.aws
          - prod-ap20.australiaeast.azure
          - prod.ap-southeast-2.aws
          - prod-eu20.westeurope.azure
          - prod-ap30.australia-southeast1.gcp
          - prod-in30.asia-south1.gcp
          - prod-sa30.me-central2.gcp
          - prod-us21.eastus.azure
          - prod-eu30.europe-west3.gcp
          - prod-us30.us-central1.gcp
          - prod-br10.sa-east-1.aws
          default: prod.eu-central-1.aws
components:
  schemas:
    BckndArgoCDRepositoryModificationResponseMessage:
      type: string
      description: Message
      example: ArgoCD application has been updated
    BckndArgoCDRepositoryModificationResponse:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/BckndId'
        message:
          $ref: '#/components/schemas/BckndArgoCDRepositoryModificationResponseMessage'
      required:
      - id
      - message
    BckndErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/BckndError'
    BckndArgoCDRepositoryCreationResponseMessage:
      type: string
      description: Message
      example: Repository has been on-boarded
    BckndArgoCDRepositoryCredentials:
      type: object
      required:
      - username
      - password
      properties:
        username:
          description: Username for read-access to the repository
          type: string
        password:
          description: Password for read-access to the repository
          type: string
    BckndArgoCDRepositoryDeletionResponseMessage:
      type: string
      description: Message
      example: The repository has been off-boarded.
    BckndArgoCDRepositoryDetails:
      type: object
      description: Repository details
      properties:
        name:
          description: The name of the repository
          type: string
        url:
          description: The repository URL
          type: string
        status:
          description: The status of the repository's on-boarding
          type: string
          enum:
          - ERROR
          - IN-PROGRESS
          - COMPLETED
          example: COMPLETED
    BckndArgoCDRepositoryDeletionResponse:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/BckndId'
        message:
          $ref: '#/components/schemas/BckndArgoCDRepositoryDeletionResponseMessage'
      required:
      - id
      - message
    BckndId:
      type: string
      pattern: ^[\w.-]{4,64}$
      example: aa97b177-9383-4934-8543-0f91a7a0283a
      description: Generic ID
    BckndError:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: Descriptive error code (not http status code)
        message:
          type: string
          description: Plaintext error description
          example: something went wrong
        requestId:
          type: string
          description: ID of the individual request
        target:
          type: string
          description: Invoked URL
        details:
          description: Optional details of the error message
          type: object
    BckndArgoCDRepositoryData:
      type: object
      required:
      - url
      - username
      - password
      properties:
        name:
          description: Name of the repository
          type: string
          minLength: 1
          maxLength: 51
          pattern: ^[a-z0-9\-]+$
        url:
          description: URL of the repository to synchronise
          type: string
        username:
          description: Username for read-access to the repository
          type: string
        password:
          description: Password for read-access to the repository
          type: string
    BckndArgoCDRepositoryDataResponse:
      description: This represents a list of GitOps repositories for the tenant.
      type: object
      properties:
        count:
          type: integer
          description: Number of the resource instances in the list
        resources:
          type: array
          items:
            $ref: '#/components/schemas/BckndArgoCDRepositoryDetails'
      required:
      - count
      - resources
    BckndArgoCDRepositoryCreationResponse:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/BckndId'
        message:
          $ref: '#/components/schemas/BckndArgoCDRepositoryCreationResponseMessage'
      required:
      - id
      - message
  responses:
    BckndNotFound:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BckndErrorResponse'
    BckndCommonError:
      description: HTTP status codes 401, 403 or 500. Response body contains further details.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BckndErrorResponse'
    BckndBadRequest:
      description: The request was malformed and could thus not be processed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BckndErrorResponse'
  parameters:
    BckndtokenHeader:
      name: Authorization
      in: header
      description: Authorization bearer token containing a JWT token.
      required: false
      schema:
        type: string
    Bckndcount:
      name: $count
      description: When the $count field is set to false, the response contains a count of the items present in the response. When the $count field is set to true, the response contains a count of all the items present on the server, and not just the ones in the response. When the $count field is not passed, it is false by default.
      in: query
      required: false
      schema:
        type: boolean
      example: true
    Bckndtop:
      name: $top
      description: Number of results to display
      in: query
      required: false
      schema:
        type: integer
        minimum: 0
      example: 10
    BckndrepositoryName:
      name: repositoryName
      description: Name of the repository
      in: path
      required: true
      schema:
        type: string
        minLength: 1
        maxLength: 51
        pattern: ^[a-z0-9\-]+$
      example: tenant-application
    Bckndskip:
      name: $skip
      description: Number of results to be skipped from the ordered list of results
      in: query
      required: false
      schema:
        type: integer
        minimum: 0
      example: 10
  securitySchemes:
    Oauth2:
      type: oauth2
      description: OAuth client credentials (client ID and secret) are required. These can be requested from SAP BTP cloud cockpit.
      flows:
        clientCredentials:
          tokenUrl: https://{subdomain_identity_zone}.authentication.{host}/oauth/token
          scopes: {}
externalDocs:
  description: Documentation for SAP AI Core
  url: https://help.sap.com/docs/AI_CORE?version=CLOUD
x-refined-from:
- ai-core.yaml
- sap-btp-ai-core-openapi.yml
x-sap-shortText: Create and manage AI scenarios, trainings, deployments, and artifacts in SAP AI Core.