SAP Business Technology Platform Metadata Configurations API

The Metadata Configurations API from SAP Business Technology Platform — 4 operation(s) for metadata configurations.

GitHub OpenAPI

Operations 7

POST /pipelines/metadata/configurations Create a metadata configuration #
GET /pipelines/metadata/configurations List metadata configurations #
GET /pipelines/metadata/configurations/{metadataConfigId} Get a configuration by ID #
DELETE /pipelines/metadata/configurations/{metadataConfigId} Delete a configuration by ID #
GET /pipelines/metadata/configurations/{metadataConfigId}/documents List documents of a configuration #
PATCH /pipelines/metadata/configurations/{metadataConfigId}/documents Batch update metadata for multiple documents #
GET /pipelines/metadata/configurations/{metadataConfigId}/documents/{documentId} Get document details #

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-metadata-configurations-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-metadata-configurations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sap Btp Metadata Configurations API
  version: 0.1.0
  contact:
    name: SAP AI Core
  description: 'Operations tagged Metadata Configurations across 2 of this provider''s published API definitions: document-grounding.yaml, sap-btp-document-grounding-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/lm/{service}
  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.ap-southeast-2.aws
      - prod-eu20.westeurope.azure
      - prod-eu30.europe-west3.gcp
      - prod-us21.eastus.azure
      - prod-us30.us-central1.gcp
      - prod-ap20.australiaeast.az
      - prod-ap11.ap-southeast-1.aws
      default: prod.eu-central-1.aws
    service:
      default: document-grounding
tags:
- name: Metadata Configurations
paths:
  /pipelines/metadata/configurations:
    post:
      tags:
      - Metadata Configurations
      summary: Create a metadata configuration
      description: Creates a new metadata configuration.
      operationId: metadata_management.v1.metadata_endpoints.create_metadata_configuration
      x-sap-cloud-sdk-operation-name: createMetadataConfiguration
      requestBody:
        required: true
        x-body-name: config_payload
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataConfigurationRequest'
      responses:
        '202':
          description: Accepted - Document enumeration in progress
          headers:
            Location:
              description: URI of the created metadata configuration resource
              schema:
                type: string
                example: /metadata/configurations/7e2b1111-aaaa-bbbb-cccc-123456789abc
        '400':
          $ref: '#/components/responses/BadRequest'
    get:
      tags:
      - Metadata Configurations
      summary: List metadata configurations
      description: List all metadata configurations
      operationId: metadata_management.v1.metadata_endpoints.list_metadata_configurations
      x-sap-cloud-sdk-operation-name: listMetadataConfigurations
      parameters:
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/count'
      responses:
        '200':
          description: Paginated list of configurations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMetadataConfigurations'
        '400':
          $ref: '#/components/responses/BadRequest'
    servers:
    - url: https://api.ai.{region}.ml.hana.ondemand.com/v2/lm/{service}
      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.ap-southeast-2.aws
          - prod-eu20.westeurope.azure
          - prod-eu30.europe-west3.gcp
          - prod-us21.eastus.azure
          - prod-us30.us-central1.gcp
          - prod-ap20.australiaeast.az
          - prod-ap11.ap-southeast-1.aws
          default: prod.eu-central-1.aws
        service:
          default: document-grounding
  /pipelines/metadata/configurations/{metadataConfigId}:
    get:
      tags:
      - Metadata Configurations
      summary: Get a configuration by ID
      description: Get the details of a configuration by ID
      operationId: metadata_management.v1.metadata_endpoints.get_metadata_configuration_by_id
      x-sap-cloud-sdk-operation-name: getMetadataConfigurationById
      parameters:
      - name: metadataConfigId
        in: path
        required: true
        schema:
          type: string
        description: Metadata Configuration ID
      responses:
        '200':
          description: Configuration found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataConfigurationResponse'
        '404':
          description: Configuration not found
        '400':
          $ref: '#/components/responses/BadRequest'
    delete:
      tags:
      - Metadata Configurations
      summary: Delete a configuration by ID
      description: Delete a metadata configuration by ID
      operationId: metadata_management.v1.metadata_endpoints.delete_metadata_configuration_by_id
      x-sap-cloud-sdk-operation-name: deleteMetadataConfigurationById
      parameters:
      - name: metadataConfigId
        in: path
        required: true
        schema:
          type: string
        description: Metadata Configuration ID
      responses:
        '202':
          description: Configuration deletion initiated
        '404':
          description: Configuration not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error during deletion of configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Pipelines exists for this configuration. Delete the pipelines before deleting the configuration.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: https://api.ai.{region}.ml.hana.ondemand.com/v2/lm/{service}
      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.ap-southeast-2.aws
          - prod-eu20.westeurope.azure
          - prod-eu30.europe-west3.gcp
          - prod-us21.eastus.azure
          - prod-us30.us-central1.gcp
          - prod-ap20.australiaeast.az
          - prod-ap11.ap-southeast-1.aws
          default: prod.eu-central-1.aws
        service:
          default: document-grounding
  /pipelines/metadata/configurations/{metadataConfigId}/documents:
    get:
      tags:
      - Metadata Configurations
      summary: List documents of a configuration
      description: List the documents for a configuration
      operationId: metadata_management.v1.metadata_endpoints.list_metadata_configuration_documents
      x-sap-cloud-sdk-operation-name: listMetadataConfigurationDocuments
      parameters:
      - name: metadataConfigId
        in: path
        required: true
        schema:
          type: string
        description: Metadata Configuration ID
      - in: query
        name: absolutePath
        schema:
          type: string
        description: 'Absolute path of the resource. Supports wildcard values (e.g., `/folder/*`).

          '
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/count'
      responses:
        '200':
          description: List of documents
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListConfigurationDocuments'
    patch:
      tags:
      - Metadata Configurations
      summary: Batch update metadata for multiple documents
      description: Patch the documents of a configuration in batch
      operationId: metadata_management.v1.metadata_endpoints.batch_update_documents_metadata
      x-sap-cloud-sdk-operation-name: batchUpdateDocumentsMetadata
      parameters:
      - name: metadataConfigId
        in: path
        required: true
        schema:
          type: string
        description: Metadata Configuration ID
      requestBody:
        required: true
        x-body-name: documents_metadata_payload
        content:
          application/merge-patch+json:
            schema:
              $ref: '#/components/schemas/DocumentMetadataBatchRequest'
      responses:
        '200':
          description: Batch patch applied successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchUpdateDocumentsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
    servers:
    - url: https://api.ai.{region}.ml.hana.ondemand.com/v2/lm/{service}
      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.ap-southeast-2.aws
          - prod-eu20.westeurope.azure
          - prod-eu30.europe-west3.gcp
          - prod-us21.eastus.azure
          - prod-us30.us-central1.gcp
          - prod-ap20.australiaeast.az
          - prod-ap11.ap-southeast-1.aws
          default: prod.eu-central-1.aws
        service:
          default: document-grounding
  /pipelines/metadata/configurations/{metadataConfigId}/documents/{documentId}:
    get:
      tags:
      - Metadata Configurations
      summary: Get document details
      description: Get the details of a document by document id
      operationId: metadata_management.v1.metadata_endpoints.get_document_details
      x-sap-cloud-sdk-operation-name: getMetadataDocumentDetails
      parameters:
      - name: metadataConfigId
        in: path
        required: true
        schema:
          type: string
        description: Metadata Configuration ID
      - name: documentId
        in: path
        required: true
        schema:
          type: string
        description: Document ID
      responses:
        '200':
          description: Document details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfigurationDocument'
        '404':
          description: Document or configuration not found
        '400':
          $ref: '#/components/responses/BadRequest'
    servers:
    - url: https://api.ai.{region}.ml.hana.ondemand.com/v2/lm/{service}
      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.ap-southeast-2.aws
          - prod-eu20.westeurope.azure
          - prod-eu30.europe-west3.gcp
          - prod-us21.eastus.azure
          - prod-us30.us-central1.gcp
          - prod-ap20.australiaeast.az
          - prod-ap11.ap-southeast-1.aws
          default: prod.eu-central-1.aws
        service:
          default: document-grounding
components:
  schemas:
    ConfigurationDocument:
      type: object
      properties:
        id:
          type: string
          example: 3cba7512-b07a-58e6-a442-c83996a0b3bb
          description: Unique identifier for the document.
        title:
          type: string
          example: Quarterly Report
          description: Title of the document.
        absoluteFilePath:
          type: string
          example: /sites/team/finance/Q1/report.pdf
          description: Absolute file path of the document in the repository.
        createdTimestamp:
          type: string
          format: date-time
          description: UTC timestamp when the document was created (RFC 3339 format, e.g., 2025-08-28T06:15:30Z)
          example: '2025-08-28T06:15:30Z'
        type:
          anyOf:
          - enum:
            - FOLDER
            - DOCUMENT
          - {}
          example: FOLDER
          description: Type of the resource. Can be FOLDER, DOCUMENT.
        metadata:
          type: array
          items:
            $ref: '#/components/schemas/DocumentMetadata'
          description: Metadata key-value pairs associated with the document.
    ListConfigurationDocuments:
      type: object
      properties:
        count:
          type: integer
          example: 1
          description: Total number of documents returned.
        resources:
          type: array
          items:
            $ref: '#/components/schemas/ConfigurationDocument'
          description: List of document objects. It will be empty array if no records found.
    DetailsErrorResponse:
      type: object
      properties:
        code:
          description: Descriptive error code (not http status code)
          type: string
        message:
          description: Plaintext error description
          type: string
    DocumentMetadataUpdateError:
      type: object
      required:
      - target
      - code
      - message
      properties:
        target:
          type: string
          description: Document ID that caused the error.
          example: 550e8400-e29b-41d4-a716-446655440000
        code:
          type: integer
          description: HTTP error status code.
          example: 500
        message:
          type: string
          description: Error message.
          example: Some unexpected error occurred.
    MetadataConfigurationResponse:
      allOf:
      - $ref: '#/components/schemas/MetadataConfigurationRequest'
      - type: object
        properties:
          enumerationStatus:
            anyOf:
            - enum:
              - NEW
              - IN_PROGRESS
              - COMPLETED
              - ERROR
            - {}
            example: IN_PROGRESS
            description: Status of metadata enumeration for the configuration.
    ListMetadataConfigurations:
      type: object
      properties:
        count:
          type: integer
          example: 1
          description: Total number of metadata configurations returned.
        resources:
          type: array
          items:
            $ref: '#/components/schemas/MetadataConfigurationResponse'
          description: List of metadata configuration objects. It will be empty array if no records found.
    DocumentMetadataUpdate:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier of the document to update.
          example: 550e8400-e29b-41d4-a716-446655440000
        metadata:
          type: array
          items:
            $ref: '#/components/schemas/DocumentMetadata'
          description: Metadata updates for this document.
          maxItems: 10
      required:
      - id
      - metadata
    ApiError:
      required:
      - code
      - message
      type: object
      properties:
        code:
          description: Descriptive error code (not http status code).
          type: string
        message:
          description: plaintext error description
          type: string
        requestId:
          description: id of individual request
          type: string
        target:
          description: url that has been called
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/DetailsErrorResponse'
    BatchUpdateDocumentsResponse:
      type: array
      items:
        oneOf:
        - $ref: '#/components/schemas/DocumentMetadataUpdate'
        - $ref: '#/components/schemas/DocumentMetadataUpdateError'
    DocumentMetadata:
      type: object
      required:
      - key
      - value
      properties:
        key:
          type: string
          example: contentObjectId
          description: Metadata key name.
        value:
          type:
          - array
          - 'null'
          items:
            type: string
            example: some-id
          description: An array of string values associated with the metadata key. If the key already exists, its values will be overwritten. Setting the value to null will delete the metadata key-value pair.
        matchMode:
          anyOf:
          - enum:
            - ANY
            - ALL
          - {}
          example: ANY
          description: Match mode for the metadata key (ANY or ALL).
    DocumentMetadataBatchRequest:
      type: object
      required:
      - value
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/DocumentMetadataUpdate'
          maxItems: 1000
          description: List of document metadata updates to be applied in batch.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Error occurred during tenant onboarding
    MetadataConfigurationRequest:
      type: object
      required:
      - destinationName
      - dataRepositoryType
      properties:
        id:
          type: string
          description: If provided, must be a valid UUID. If not provided, a new UUID will be generated.
        name:
          type: string
          description: If provided, must be a valid string. If not provided, will be same as id.
        destinationName:
          type: string
          description: Contains destination name containing credentials to access the data repository.
        dataRepositoryType:
          type: string
          enum:
          - MSSharePoint
          - S3
          - SFTP
          example: MSSharePoint
          description: The data repository type for which this configuration is being created.
        includePaths:
          type: array
          items:
            type: string
          minItems: 1
          example:
          - /site/documents
          - /shared/team
        labels:
          type: array
          items:
            type: object
            required:
            - key
            - value
            properties:
              key:
                type: string
                example: department
              value:
                type: string
                example: finance
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                $ref: '#/components/schemas/ApiError'
      description: The specification of the resource was incorrect
  parameters:
    top:
      name: $top
      description: Number of results to display
      in: query
      required: false
      schema:
        type: integer
        minimum: 0
      example: 10
    count:
      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
    skip:
      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 - Grounding
  url: https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/grounding
x-refined-from:
- document-grounding.yaml
- sap-btp-document-grounding-openapi.yml
x-sap-shortText: Create and manage AI scenarios, trainings, deployments, and artifacts in SAP AI Core.