{
  "opencollection": "1.0.0",
  "info": {
    "name": "SAP AI Core API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://{subdomain}.authentication.{region}.hana.ondemand.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Scenarios",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Sap List Ai Scenarios",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/scenarios",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ]
          },
          "docs": "Retrieves all AI scenarios available in the resource group."
        },
        {
          "info": {
            "name": "Sap List Scenario Versions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/scenarios/:scenarioId/versions",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "scenarioId",
                "value": "500123",
                "type": "path",
                "description": "Scenario identifier"
              }
            ]
          },
          "docs": "Retrieves all versions for a specific AI scenario."
        }
      ]
    },
    {
      "info": {
        "name": "Configurations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Sap List Configurations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/configurations",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "scenarioId",
                "value": "500123",
                "type": "query",
                "description": "Filter by scenario ID"
              }
            ]
          },
          "docs": "Retrieves all configurations for executions and deployments."
        },
        {
          "info": {
            "name": "Sap Create a Configuration",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/configurations",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new configuration for an execution or deployment."
        }
      ]
    },
    {
      "info": {
        "name": "Executions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Sap List Executions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/executions",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "status",
                "value": "PENDING",
                "type": "query",
                "description": "Filter by execution status"
              }
            ]
          },
          "docs": "Retrieves all training executions in the resource group."
        },
        {
          "info": {
            "name": "Sap Create an Execution",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/executions",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Triggers a new training execution using a configuration."
        },
        {
          "info": {
            "name": "Sap Get an Execution",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/executions/:executionId",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "executionId",
                "value": "500123",
                "type": "path",
                "description": "Execution identifier"
              }
            ]
          },
          "docs": "Retrieves details of a specific training execution."
        },
        {
          "info": {
            "name": "Sap Stop an Execution",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/executions/:executionId",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "executionId",
                "value": "500123",
                "type": "path"
              }
            ]
          },
          "docs": "Stops a running execution or marks it for deletion."
        }
      ]
    },
    {
      "info": {
        "name": "Deployments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Sap List Deployments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/deployments",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ]
          },
          "docs": "Retrieves all model deployments in the resource group."
        },
        {
          "info": {
            "name": "Sap Create a Deployment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/deployments",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new model deployment for serving predictions."
        }
      ]
    },
    {
      "info": {
        "name": "Artifacts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Sap List Artifacts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/artifacts",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ]
          },
          "docs": "Retrieves all artifacts (models, datasets) in the resource group."
        },
        {
          "info": {
            "name": "Sap Register an Artifact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2/lm/artifacts",
            "headers": [
              {
                "name": "AI-Resource-Group",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Registers a new artifact (model or dataset) for use in executions and deployments."
        }
      ]
    }
  ],
  "bundled": true
}