SAP AI SDK for JavaScript - v2.8.0
    Preparing search index...

    Variable ArtifactApiConst

    ArtifactApi: {
        _defaultBasePath: undefined;
        artifactCount: (
            queryParameters: {
                $search?: string;
                artifactLabelSelector?: string[];
                executionId?: string;
                kind?: "model" | "dataset" | "resultset" | "other";
                name?: AiArtifactName;
                scenarioId?: string;
                searchCaseInsensitive?: boolean;
            },
            headerParameters: { "AI-Resource-Group": string },
        ) => OpenApiRequestBuilder<number>;
        artifactCreate: (
            body: AiArtifactPostData,
            headerParameters: { "AI-Resource-Group": string },
        ) => OpenApiRequestBuilder<AiArtifactCreationResponse>;
        artifactGet: (
            artifactId: string,
            queryParameters: { $expand?: "scenario" },
            headerParameters: { "AI-Resource-Group": string },
        ) => OpenApiRequestBuilder<AiArtifact>;
        artifactQuery: (
            queryParameters: {
                $expand?: "scenario";
                $search?: string;
                $skip?: number;
                $top?: number;
                artifactLabelSelector?: string[];
                executionId?: string;
                kind?: "model" | "dataset" | "resultset" | "other";
                name?: AiArtifactName;
                scenarioId?: string;
                searchCaseInsensitive?: boolean;
            },
            headerParameters: { "AI-Resource-Group": string },
        ) => OpenApiRequestBuilder<AiArtifactList>;
    }

    Representation of the 'ArtifactApi'. This API is part of the 'AI_CORE_API' service.

    Type Declaration

    • _defaultBasePath: undefined
    • artifactCount: (
          queryParameters: {
              $search?: string;
              artifactLabelSelector?: string[];
              executionId?: string;
              kind?: "model" | "dataset" | "resultset" | "other";
              name?: AiArtifactName;
              scenarioId?: string;
              searchCaseInsensitive?: boolean;
          },
          headerParameters: { "AI-Resource-Group": string },
      ) => OpenApiRequestBuilder<number>

      Retrieve the number of available artifacts that match the specified filter criteria. Filter criteria include a scenarioId, executionId, an artifact name, artifact kind, or artifact labels. Search by substring of artifact name or description is also possible.

    • artifactCreate: (
          body: AiArtifactPostData,
          headerParameters: { "AI-Resource-Group": string },
      ) => OpenApiRequestBuilder<AiArtifactCreationResponse>

      Register an artifact for use in a configuration, for example a model or a dataset.

    • artifactGet: (
          artifactId: string,
          queryParameters: { $expand?: "scenario" },
          headerParameters: { "AI-Resource-Group": string },
      ) => OpenApiRequestBuilder<AiArtifact>

      Retrieve details for artifact with artifactId.

    • artifactQuery: (
          queryParameters: {
              $expand?: "scenario";
              $search?: string;
              $skip?: number;
              $top?: number;
              artifactLabelSelector?: string[];
              executionId?: string;
              kind?: "model" | "dataset" | "resultset" | "other";
              name?: AiArtifactName;
              scenarioId?: string;
              searchCaseInsensitive?: boolean;
          },
          headerParameters: { "AI-Resource-Group": string },
      ) => OpenApiRequestBuilder<AiArtifactList>

      Retrieve a list of artifacts that matches the specified filter criteria. Filter criteria include scenario ID, execution ID, an artifact name, artifact kind, or artifact labels. Use top/skip parameters to paginate the result list. Search by substring of artifact name or description, if required.

      Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.