openapi: 3.0.3
info:
  title: Model Management
  contact:
    name: SAS Developers
    url: https://developer.sas.com
    email: devex@sas.com
  description: The Model Management API provides basic resources for monitoring performance, comparing models, and running workflow processes.
  version: "11"
servers:
  - url: https://example.com/modelManagement
    description: This is an example of a base URL.
tags:
  - name: Performance Jobs
    description: Contains the operations for the Performance Jobs resource.
  - name: Performance Tasks
    description: Contains the operations for the Performance Tasks resource.
  - name: Workflow Associations
    description: Contains the operations for the Workflow Associations resource.
  - name: Workflow Processes
    description: Contains the operations for the Workflow Processes resource.
  - name: Workflow Process Variables
    description: Contains the operations for the Workflow Process Variables resource.
  - name: Workflow Tasks
    description: Contains the operations for the Workflow Tasks resource.
  - name: KPIs
    description: Contains the operations for the KPIs resource.
  - name: Alert Rules
    description: Contains the operations for the Alert Rules resource.
  - name: Execution
    description: Contains the operations for the Execution resource.
  - name: Code
    description: Contains the operation for generating code for models.
  - name: Model Comparison Reports
    description: Contains the operations for a generating model comparison reports.
  - name: Publish Models
    description: Contains the operations for publishing models.
  - name: Root
    description: Contains the operations for the Root resource.
  - name: RSS Feed
    description: Contains the operations for the RSS Feed.
  - name: Multi-Variate Prediction Summary
    description: Contains the distinct values along with the frequency for the specific variable in a CAS table.
  - name: Metrics
    description: Contains the operations for the Metrics resource.
paths:
  /:
    get:
      tags:
        - Root
      description: Returns a list of links to the top-level resources that are surfaced through the API.
      summary: Get a list of top-level resource links
      operationId: root
      responses:
        "200":
          description: The request succeeded.
          headers:
            ETag:
              description: A tag that identifies the revision of this object.
              schema:
                type: string
          content:
            application/vnd.sas.api+json:
              schema:
                $ref: "#/components/schemas/api"
            application/json:
              schema:
                $ref: "#/components/schemas/api"
    head:
      tags:
        - Root
      summary: Check API availability
      description: Returns the headers for the API. Also used to determine whether the service provided by the API is available.
      operationId: headersForRoot
      responses:
        "200":
          description: The request succeeded.
          headers:
            ETag:
              description: A tag that identifies the revision of this object.
              schema:
                type: string
            Last-Modified:
              description: The last modified timestamp of this object.
              schema:
                type: string
                format: date-time
  /performanceTasks:
    get:
      operationId: getPerformanceTasks
      summary: Get a list of performance tasks
      description: Returns a list of performance tasks.
      tags:
        - Performance Tasks
      parameters:
        - name: projectId
          in: query
          description: The server-generated identifier for the project.
          required: false
          schema:
            type: string
        - name: start
          description: The index of the first performance task to return.
          in: query
          schema:
            type: integer
            format: int64
            default: 0
        - name: limit
          description: The maximum number of performance tasks to return.
          in: query
          schema:
            type: integer
            format: int32
            default: 10
        - name: filter
          in: query
          description: The criteria for filtering the performance task definitions. See [Filtering in REST APIs](https://developer.sas.com/rest-apis/modelManagement/docs/getting-started/usage-notes#filtering).
          schema:
            type: string
            format: string
        - name: sortBy
          in: query
          description: The criteria for sorting the performance task definitions. See [Sorting in REST APIs](https://developer.sas.com/rest-apis/modelManagement/docs/getting-started/usage-notes#sorting).
          schema:
            type: string
            format: sort-criteria
      responses:
        "200":
          description: The request succeeded.
          headers:
            ETag:
              description: A tag that identifies the revision of this object.
              schema:
                type: string
            Last-Modified:
              description: The last modified timestamp of this object.
              schema:
                type: string
                format: date-time
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/performanceTaskCollection"
            application/json:
              schema:
                $ref: "#/components/schemas/performanceTaskCollection"
    post:
      operationId: createPerformanceTask
      summary: Create a performance task definition
      description: Creates a performance task definition.
      tags:
        - Performance Tasks
      requestBody:
        content:
          application/vnd.sas.models.performance.task+json:
            schema:
              $ref: "#/components/schemas/performanceTask"
          application/json:
            schema:
              $ref: "#/components/schemas/performanceTask"
        description: The definition of the performance task.
        required: true
      responses:
        "201":
          description: The performance task definition was created.
          headers:
            ETag:
              description: A tag that identifies the revision of this performance task definition.
              schema:
                type: string
            Location:
              description: The URL of the performance task definition.
              schema:
                type: string
                format: uri
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/performanceTask"
            application/json:
              schema:
                $ref: "#/components/schemas/performanceTask"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  /performanceTasks/@defaultTask/performanceJobs:
    post:
      operationId: createPerformanceJob
      summary: Create performance job history
      description: Creates the performance job history.
      tags:
        - Performance Tasks
      requestBody:
        content:
          application/vnd.sas.models.performance.job+json:
            schema:
              $ref: "#/components/schemas/performanceJob"
          application/json:
            schema:
              $ref: "#/components/schemas/performanceJob"
        description: The definition of the performance job.
        required: true
      responses:
        "201":
          description: The performance job was created.
          headers:
            Location:
              description: The URL of the performance job.
              schema:
                type: string
                format: uri
          content:
            application/vnd.sas.models.performance.job+json:
              schema:
                $ref: "#/components/schemas/performanceJob"
            application/json:
              schema:
                $ref: "#/components/schemas/performanceJob"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.models.performance.job+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/performanceTasks/{taskId}":
    get:
      operationId: getPerformanceTaskDefinition
      summary: Get a performance task definition
      description: Returns the performance task definition.
      tags:
        - Performance Tasks
      parameters:
        - name: taskId
          in: path
          description: Identifier of the task.
          required: true
          schema:
            type: string
        - name: start
          description: The index of the first performance task to return.
          in: query
          schema:
            type: integer
            format: int64
            default: 0
        - name: limit
          description: The maximum number of performance tasks to return.
          in: query
          schema:
            type: integer
            format: int32
            default: 10
      responses:
        "200":
          description: The request succeeded.
          headers:
            ETag:
              description: A tag that identifies the revision of this object.
              schema:
                type: string
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/performanceJob"
            application/json:
              schema:
                $ref: "#/components/schemas/performanceJob"
        "404":
          description: No performance task definition exists at the requested path.
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
    post:
      summary: Execute a performance task
      operationId: executeJob
      description: Executes a performance task job.
      tags:
        - Performance Tasks
      parameters:
        - name: taskId
          in: path
          description: Identifier of the task.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/vnd.sas.models.performance.task+json:
            schema:
              $ref: "#/components/schemas/performanceTask"
          application/json:
            schema:
              $ref: "#/components/schemas/performanceTask"
        description: The task contents for updating the task.
        required: true
      responses:
        "201":
          description: The performance task was executed.
          headers:
            ETag:
              description: A tag that identifies the revision of this object.
              schema:
                type: string
            Location:
              description: The URL of the performance task.
              schema:
                type: string
                format: uri
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/performanceJob"
            application/json:
              schema:
                $ref: "#/components/schemas/performanceJob"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
    put:
      operationId: updateJobDefinition
      summary: Update a performance task definition
      description: Updates the performance task definition associated with the specified task ID.
      tags:
        - Performance Tasks
      parameters:
        - name: Etag
          in: header
          description: If-Match
          required: true
          schema:
            type: string
        - name: taskId
          in: path
          description: The identifier of the task.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/vnd.sas.models.performance.task+json:
            schema:
              $ref: "#/components/schemas/performanceTask"
          application/json:
            schema:
              $ref: "#/components/schemas/performanceTask"
        description: The task contents for updating the task.
        required: true
      responses:
        "200":
          description: The request succeeded.
          headers:
            Etag:
              description: A tag that identifies the revision of this object.
              schema:
                type: string
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/performanceTask"
            application/json:
              schema:
                $ref: "#/components/schemas/performanceTask"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "412":
          description: The `If-Match` request header did not match the resource's entity tag (ETag).
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "428":
          description: The request headers did not include a `If-Match` or `If-Unmodified-Since` precondition.
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
    delete:
      operationId: deleteTask
      summary: Delete a performance task definition
      description: Deletes a performance task definition.
      tags:
        - Performance Tasks
      parameters:
        - name: taskId
          in: path
          description: The identifier of the task.
          required: true
          schema:
            type: string
        - name: deleteTask
          in: query
          description: Indicates whether to delete the task.
          required: false
          schema:
            type: boolean
            default: true
        - name: deleteTable
          in: query
          description: Indicates whether to delete the table.
          required: false
          schema:
            type: boolean
            default: false
      responses:
        "204":
          description: The performance task was deleted.
        "404":
          description: No performance task exists at the requested path.
  "/performanceTasks/{taskId}/summary":
    get:
      operationId: getPerformanceTaskExecutionSummary
      summary: Get a performance task execution summary
      description: Returns an execution summary for the performance task.
      tags:
        - Performance Tasks
      parameters:
        - name: taskId
          in: path
          description: The identifier of the performance task.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.models.performance.execution.summary+json:
              schema:
                $ref: "#/components/schemas/performanceTaskExecutionSummary"
            application/json:
              schema:
                $ref: "#/components/schemas/performanceTaskExecutionSummary"
        "404":
          description: No performance task definition exists at the requested path.
          content:
            application/vnd.sas.models.performance.execution.summary+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/performanceTasks/{taskId}/state":
    get:
      operationId: getPerformanceTaskExecutionState
      summary: Get a performance task execution state
      description: Returns the execution state of a performance task.
      tags:
        - Performance Tasks
      parameters:
        - name: taskId
          in: path
          description: The identifier of the performance task.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          headers:
            ETag:
              description: A tag that identifies the revision of this object.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/performanceTaskState"
        "404":
          description: No performance task definition exists at the requested path.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/performanceTasks/{taskId}/performanceJobs":
    get:
      summary: Get a list of jobs for a performance task
      operationId: getJobsByTask
      description: Returns a list of the jobs and the performance results that are associated with a specified task ID.
      tags:
        - Performance Jobs
      parameters:
        - name: taskId
          in: path
          description: The identifier of the task.
          required: true
          schema:
            type: string
        - name: start
          description: The index of the first performance task to return.
          in: query
          schema:
            type: integer
            format: int64
            default: 0
        - name: limit
          description: The maximum number of performance tasks to return.
          in: query
          schema:
            type: integer
            format: int32
            default: 10
        - name: filter
          in: query
          description: The criteria for filtering the performance jobs. See [Filtering in REST APIs](https://developer.sas.com/rest-apis/modelManagement/docs/getting-started/usage-notes#filtering).
          schema:
            type: string
            format: string
        - name: sortBy
          in: query
          description: The criteria for sorting the performance jobs. See [Sorting in REST APIs](https://developer.sas.com/rest-apis/modelManagement/docs/getting-started/usage-notes#sorting).
          schema:
            type: string
            format: sort-criteria
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/performanceJobCollection"
            application/json:
              schema:
                $ref: "#/components/schemas/performanceJobCollection"
        "404":
          description: No performance task exists at the requested path.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/performanceTasks/{taskId}/performanceJobs/{jobId}":
    get:
      operationId: getPerformanceJob
      summary: Get performance job results
      description: Returns the performance results that are associated with the specified task ID and job ID.
      tags:
        - Performance Jobs
      parameters:
        - name: taskId
          in: path
          description: The identifier of the task.
          required: true
          schema:
            type: string
        - name: jobId
          in: path
          description: The identifier of the performance job.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/performanceJobCollection"
            application/json:
              schema:
                $ref: "#/components/schemas/performanceJobCollection"
        "404":
          description: No performance task or job exists at the requested path.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
    delete:
      summary: Delete a performance job
      description: Deletes the specified performance job.
      tags:
        - Performance Jobs
      operationId: deletePerformanceJob
      parameters:
        - name: taskId
          in: path
          description: The identifier of the task.
          required: true
          schema:
            type: string
        - name: jobId
          in: path
          description: The identifier of the performance job.
          required: true
          schema:
            type: string
      responses:
        "204":
          description: The performance job was deleted.
        "404":
          description: No performance task exists at the requested path.
  "/performanceTasks/{taskId}/performanceJobs/{jobId}/code":
    get:
      operationId: getPerformanceJobCode
      summary: Get the performance job code
      description: Returns the performance job execution code for a performance task.
      tags:
        - Performance Jobs
      parameters:
        - name: taskId
          in: path
          description: The identifier of the task.
          required: true
          schema:
            type: string
        - name: jobId
          in: path
          description: The identifier of the performance job.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            text/vnd.sas.source.sas:
              schema:
                $ref: "#/components/schemas/performanceJob"
            text/plain:
              schema:
                $ref: "#/components/schemas/performanceJob"
        "404":
          description: No performance job exists at the requested path.
          content:
            text/vnd.sas.source.sas:
              schema:
                $ref: "#/components/schemas/error2"
            text/plain:
              schema:
                $ref: "#/components/schemas/error2"
  "/performanceTasks/{taskId}/performanceJobs/{jobId}/log":
    get:
      operationId: getPerformanceJobLog
      summary: Get a performance job log
      description: Returns the execution log for a performance job.
      tags:
        - Performance Jobs
      parameters:
        - name: taskId
          in: path
          description: The identifier of the task.
          required: true
          schema:
            type: string
        - name: jobId
          in: path
          description: The identifier of the performance job.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            text/plain:
              schema:
                $ref: "#/components/schemas/performanceJob"
        "404":
          description: No performance job exists at the requested path.
          content:
            text/plain:
              schema:
                $ref: "#/components/schemas/error2"
  "/performanceTasks/{taskId}/performanceReportData":
    get:
      tags:
        - Performance Jobs
      summary: Get the performance report data
      description: Retrieves the performance monitoring report data associated with the specified task ID.
      operationId: getPerformanceReportData
      parameters:
        - name: taskId
          in: path
          description: The identifier of the performance task.
          required: true
          schema:
            type: string
        - name: Accept-Item
          in: header
          required: true
          description: " The desired performance report data representation."
          schema:
            type: string
            enum:
              - application/vnd.sas.models.performance.task.report.data.lift+json
              - application/vnd.sas.models.performance.task.report.data.variable.summary+json
              - application/vnd.sas.models.performance.task.report.data.variable.deviation+json
              - application/vnd.sas.models.performance.task.report.data.roc+json
              - application/vnd.sas.models.performance.task.report.data.ks.cumulative+json
              - application/vnd.sas.models.performance.task.report.data.ks.statistic+json
              - application/vnd.sas.models.performance.task.report.data.mse+json
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/collection2"
            application/json:
              schema:
                $ref: "#/components/schemas/collection2"
        "404":
          description: No performance task exists at the requested path.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/performanceTasks/{taskId}/resultPlotData":
    get:
      tags:
        - Performance Jobs
      summary: Get the performance result data for plot
      description: Retrieves the performance monitoring result data associated with the specified task ID.
      operationId: getPerformanceResultPlotData
      parameters:
        - name: taskId
          in: path
          description: The identifier of the performance task.
          required: true
          schema:
            type: string
        - name: plotType
          in: query
          description: The specific type of the performance plot.
          required: false
          schema:
            type: string
        - name: modelId
          in: query
          description: The identifier of a specific model.
          required: false
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/collection2"
            application/json:
              schema:
                $ref: "#/components/schemas/collection2"
        "400":
          description: No performance result data source associated with the plot type.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: No performance task exists at the requested path.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/performanceTasks/{taskId}/timeSK":
    get:
      tags:
        - Performance Jobs
      summary: Get the time periods from a performance task
      description: Retrieves the time period data associated with the specified task ID.
      operationId: getTimeSK
      parameters:
        - name: taskId
          in: path
          description: The identifier of the performance task.
          required: true
          schema:
            type: string
        - name: modelId
          in: query
          description: The identifier of a specific model.
          required: false
          schema:
            type: string
        - name: modelVersionId
          in: query
          description: The identifier of a specific model version.
          required: false
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/collection2"
        "400":
          description: No result data.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: No performance task exists at the requested path.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  /publish:
    post:
      tags:
        - Publish Models
      summary: Publish models
      description: "Publish a model to a CAS, Hadoop, Teradata, SAS Micro Analytic Service, or a container publishing destination. For more information, see [Publishing Models](https://documentation.sas.com/?cdcId=mdlmgrcdc&cdcVersion=default&docsetId=mdlmgrug&docsetTarget=p1takjngq2c47dn1g52oyk6gxk7k.htm) in _SAS Model Manager: User's Guide_"
      operationId: publishModels
      parameters:
        - name: force
          in: query
          description: Indicates to publish models and replace previously published models with the same name.
          required: false
          schema:
            type: boolean
            default: false
        - name: reloadModelTable
          in: query
          description: Indicates whether to reload the model table for the destination.
          required: false
          schema:
            type: boolean
            default: false
      requestBody:
        content:
          application/vnd.sas.models.publishing.publish+json:
            schema:
              $ref: "#/components/schemas/publishRequestManagement"
            examples:
              default:
                $ref: "#/components/examples/publishModelRequest"
        description: The representation of a publish request.
        required: true
      responses:
        "201":
          description: The models were published successfully.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/publishedModel"
              examples:
                default:
                  $ref: "#/components/examples/publishModelResponse"
            application/json:
              schema:
                $ref: "#/components/schemas/publishedModel"
              examples:
                default:
                  $ref: "#/components/examples/publishModelResponse"
        "400":
          description: The request was invalid. Errors might of been caused by the model that was published, a snapshot that could not be created, the destination was not specified, or there are no models provided by the "modelContents".
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: No model score code exists at the requested path.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  /workflowAssociations:
    get:
      operationId: getWorkflowAssociations
      summary: Get all workflow object associations
      description: Returns a list of all workflow process associations to a model object.
      tags:
        - Workflow Associations
      parameters:
        - name: start
          description: The index of the first workflow process association to return.
          in: query
          schema:
            type: integer
            format: int64
            default: 0
        - name: limit
          description: The maximum number of workflow process associations to return.
          in: query
          schema:
            type: integer
            format: int32
            default: 10
        - name: filter
          in: query
          description: The criteria for filtering the workflow process associations. See [Filtering in REST APIs](https://developer.sas.com/rest-apis/modelManagement/docs/getting-started/usage-notes#filtering).
          schema:
            type: string
            format: string
        - name: sortBy
          in: query
          description: The criteria for sorting the workflow process associations. See [Sorting in REST APIs](https://developer.sas.com/rest-apis/modelManagement/docs/getting-started/usage-notes#sorting).
          schema:
            type: string
            format: sort-criteria
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/workflowAssociation"
            application/json:
              schema:
                $ref: "#/components/schemas/workflowAssociation"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
    post:
      operationId: createWorkflowAssociation
      summary: Create a workflow association
      description: Creates an association between a workflow process and a Model Repository object. This association is readable by SAS Model Manager so that it can understand when a model object, such as a project, is being used in a workflow process. SAS Model Manager can change its behavior for an object when that object is being used by a workflow process.
      tags:
        - Workflow Associations
      responses:
        "201":
          description: A new association between a workflow process and a model object was created.
          headers:
            Location:
              description: The URL of the workflow association.
              schema:
                type: string
                format: uri
          content:
            application/vnd.sas.workflow.object.association+json:
              schema:
                $ref: "#/components/schemas/workflowAssociation"
            application/json:
              schema:
                $ref: "#/components/schemas/workflowAssociation"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.workflow.object.association+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "409":
          description: The requested workflow association conflicts with an existing resource.
          content:
            application/vnd.sas.workflow.object.association+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/workflowAssociations/{associationId}":
    get:
      operationId: getWorkflowAssociation
      summary: Get a workflow object association
      description: Returns a specific association for a workflow process to model object.
      tags:
        - Workflow Associations
      parameters:
        - name: associationId
          in: path
          description: The ID of the workflow object association.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.workflow.object.association+json:
              schema:
                $ref: "#/components/schemas/workflowAssociation"
            application/json:
              schema:
                $ref: "#/components/schemas/workflowAssociation"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.workflow.object.association+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: No association ID exists at the requested path.
          content:
            application/vnd.sas.workflow.object.association+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  /workflowProcesses:
    get:
      summary: Get all workflow processes
      operationId: getWorkflowProcesses
      description: Returns all workflow processes that are associated with SAS Model Manager. The workflow processes are managed using the Workflow service. The processes in this list are defined in the Workflow service with the client registration ID for SAS Model Manager.
      tags:
        - Workflow Processes
      parameters:
        - name: start
          description: The index of the first workflow process to return.
          in: query
          schema:
            type: integer
            format: int64
            default: 0
        - name: limit
          description: The maximum number of workflow processes to return.
          in: query
          schema:
            type: integer
            format: int32
            default: 10
        - name: filter
          in: query
          description: The criteria for filtering the workflow processes. See [Filtering in REST APIs](https://developer.sas.com/rest-apis/modelManagement/docs/getting-started/usage-notes#filtering).
          schema:
            type: string
            format: string
        - name: sortBy
          in: query
          description: The criteria for sorting the workflow processes. See [Sorting in REST APIs](https://developer.sas.com/rest-apis/modelManagement/docs/getting-started/usage-notes#sorting).
          schema:
            type: string
            format: sort-criteria
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/workflowProcess"
            application/json:
              schema:
                $ref: "#/components/schemas/workflowProcess"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/workflowProcesses/{processId}":
    get:
      summary: Get a workflow process
      operationId: getWorkflowProcess
      description: Returns a specific workflow process that has been associated with SAS Model Manager. The workflow is managed and authorized in the Workflow service. The process is available only if it has a client registration ID for SAS Model Manager.
      tags:
        - Workflow Processes
      parameters:
        - name: processId
          in: path
          description: The ID of the workflow process.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.workflow.object.process+json:
              schema:
                $ref: "#/components/schemas/workflowProcess"
            application/json:
              schema:
                $ref: "#/components/schemas/workflowProcess"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.workflow.object.process+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: The process ID was not found.
          content:
            application/vnd.sas.workflow.object.process+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  /workflow/processes:
    post:
      summary: Create a workflow process
      operationId: createWorkflowProcess
      description: Creates a workflow process and then creates an association between the started workflow process and a model repository object. Returns a specific workflow process that was associated with SAS Model Manager and the association for that workflow process to a model object. It is possible to start a workflow process but not be able to create the workflow association, which produces an error response. The workflow is managed and authorized within the Workflow service. The process is available only if it has a client registration ID for SAS Model Manager. <br><br> <b>Authorization:</b> By default only users in the ApplicationAdministrators group have access to this endpoint. Authorization rules can be added to this endpoint for any set of users or groups to allow access to the associated information.
      tags:
        - Workflow Processes
      parameters:
        - name: definitionId
          in: query
          description: The ID of the enabled definition.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/vnd.sas.workflow.object.process.request+json:
            schema:
              $ref: "#/components/schemas/workflowProcessRequest"
            examples:
              With variables:
                $ref: "#/components/examples/workflowObjectProcessRequestWithVars"
              No variables:
                $ref: "#/components/examples/workflowObjectProcessRequestNoVars"
          application/json:
            schema:
              $ref: "#/components/schemas/workflowProcessRequest"
            examples:
              With variables:
                $ref: "#/components/examples/workflowObjectProcessRequestWithVars"
              No variables:
                $ref: "#/components/examples/workflowObjectProcessRequestNoVars"
        description: Workflow process content to use in starting a process
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.workflow.object.process+json:
              schema:
                $ref: "#/components/schemas/workflowProcess"
              examples:
                application/vnd.sas.workflow.object.process+json:
                  $ref: "#/components/examples/workflowObjectProcessResponse"
            application/json:
              schema:
                $ref: "#/components/schemas/workflowProcess"
              examples:
                application/json:
                  $ref: "#/components/examples/workflowObjectProcessResponse"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: The definition ID was not found.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
        "406":
          description: The solutionObjectMediaType was not acceptable.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notAcceptable"
  "/workflow/processes/{processId}/variables":
    get:
      summary: Get variables within a workflow process
      operationId: getProcessVariables
      tags:
        - Workflow Process Variables
      description: Returns the variables within a workflow process that are associated with SAS Model Manager. <br><br> <b>Authorization:</b> By default only users in the ApplicationAdministrators group have access to this endpoint. Authorization rules can be added to this endpoint for any set of users or groups to allow access to the associated information.
      parameters:
        - name: Accept
          in: header
          description: The media type of the resource items included in the returned collection.
          schema:
            type: string
            enum:
              - application/vnd.sas.workflow.variable+json
              - application/json
        - name: processId
          in: path
          description: The workflow process ID.
          required: true
          schema:
            type: string
            format: object-id
        - name: name
          in: query
          description: Names of the variables to return in the collection result.
          required: false
          schema:
            type: string
      responses:
        "200":
          description: The variable collection was returned.
          headers:
            Content-Type:
              schema:
                type: string
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/variableCollection"
              examples:
                application/vnd.sas.collection+json:
                  $ref: "#/components/examples/getProcessVariables"
            application/json:
              schema:
                $ref: "#/components/schemas/variableCollection"
              examples:
                application/json:
                  $ref: "#/components/examples/getProcessVariables"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No process exists with the specified ID.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
    patch:
      summary: Update variables within a workflow process
      description: Update variables within a workflow process that is associated with SAS Model Manager. The media type of the returned collection items is application/vnd.sas.workflow.variable+json. Users can update only the variable with a name of modelProjectId. <br><br> <b>Authorization:</b> By default only users in the ApplicationAdministrators group have access to this endpoint. Authorization rules can be added to this endpoint for any set of users or groups to allow access to the associated information.
      operationId: updateProcessVariables
      tags:
        - Workflow Process Variables
      parameters:
        - name: processId
          in: path
          description: The workflow process ID.
          required: true
          schema:
            type: string
            format: object-id
      requestBody:
        description: The variables to update within the process.
        content:
          application/vnd.sas.workflow.variables+json:
            schema:
              $ref: "#/components/schemas/updateVariables"
            examples:
              application/vnd.sas.workflow.variables+json:
                $ref: "#/components/examples/getProcessVariables"
          application/json:
            schema:
              $ref: "#/components/schemas/updateVariables"
            examples:
              application/json:
                $ref: "#/components/examples/getProcessVariables"
      responses:
        "200":
          description: The variables were updated.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/variableCollection"
              examples:
                application/vnd.sas.collection+json:
                  $ref: "#/components/examples/getProcessVariables"
            application/json:
              schema:
                $ref: "#/components/schemas/variableCollection"
              examples:
                application/json:
                  $ref: "#/components/examples/getProcessVariables"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No process or variable exists at the requested path.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
  "/workflow/processes/{processId}/variables/{variableName}":
    get:
      tags:
        - Workflow Process Variables
      summary: Get variable by name from a process
      description: Returns the variable with the specified name from a process that is associated with SAS Model Manager. <br><br> <b>Authorization:</b> By default only users in the ApplicationAdministrators group have access to this endpoint. Authorization rules can be added to this endpoint for any set of users or groups to allow access to the associated information.
      operationId: getProcessVariableName
      parameters:
        - name: processId
          in: path
          description: The workflow process ID.
          required: true
          schema:
            type: string
            format: object-id
        - name: variableName
          in: path
          description: The variable name.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The variable object was returned.
          content:
            application/vnd.sas.workflow.variable+json:
              schema:
                $ref: "#/components/schemas/variable"
              examples:
                application/vnd.sas.workflow.variable+json:
                  $ref: "#/components/examples/getProcessVariable"
            application/json:
              schema:
                $ref: "#/components/schemas/variable"
              examples:
                application/json:
                  $ref: "#/components/examples/getProcessVariable"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No process exists with the specified ID or variable name.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
    put:
      tags:
        - Workflow Process Variables
      summary: Update variable within a process
      description: Updates the variable with the specified name within the process associated with SAS Model Manager. Users can update only the variable with a name of modelProjectId.<br><br> <b>Authorization:</b> By default only users in the ApplicationAdministrators group have access to this endpoint. Authorization rules can be added to this endpoint for any set of users or groups to allow access to the associated information.
      operationId: updateProcessVariableName
      parameters:
        - name: Etag
          in: header
          description: If-Match
          required: true
          schema:
            type: string
        - name: processId
          in: path
          description: The workflow process ID.
          required: true
          schema:
            type: string
            format: object-id
        - name: variableName
          in: path
          description: The variable name.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/vnd.sas.workflow.variable:
            schema:
              $ref: "#/components/schemas/updateVariable"
            examples:
              application/vnd.sas.workflow.variable:
                $ref: "#/components/examples/getProcessVariable"
          application/json:
            schema:
              $ref: "#/components/schemas/updateVariable"
            examples:
              application/json:
                $ref: "#/components/examples/getProcessVariable"
        description: The variable to set on the process.
      responses:
        "200":
          description: The variable was updated.
          content:
            application/vnd.sas.workflow.variable+json:
              schema:
                $ref: "#/components/schemas/variable"
              examples:
                application/vnd.sas.workflow.variable+json:
                  $ref: "#/components/examples/getProcessVariable"
            application/json:
              schema:
                $ref: "#/components/schemas/variable"
              examples:
                application/json:
                  $ref: "#/components/examples/getProcessVariable"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No process exists with the specified ID or variable name.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
        "412":
          description: The `If-Match` request header did not match the resource's entity tag (ETag).
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "428":
          description: The request headers did not include a `If-Match` or `If-Unmodified-Since` precondition.
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/workflow/processes/{processId}/subprocesses/{subprocessId}/variables":
    get:
      tags:
        - Workflow Process Variables
      summary: Get variables within a subprocess
      description: Returns the variables within a subprocess that is associated with SAS Model Manager. <br><br> <b>Authorization:</b> By default only users in the ApplicationAdministrators group have access to this endpoint. Authorization rules can be added to this endpoint for any set of users or groups to allow access to the associated information.
      operationId: getVariablesFromSubprocess
      parameters:
        - name: Accept
          in: header
          description: The media type of the resource items included in the returned collection.
          schema:
            type: string
            enum:
              - application/vnd.sas.workflow.variable+json
              - application/json
        - name: processId
          in: path
          description: The workflow process ID.
          required: true
          schema:
            type: string
            format: object-id
        - name: subprocessId
          in: path
          description: The workflow subprocess ID.
          required: true
          schema:
            type: string
            format: object-id
        - name: scope
          in: query
          description: "The scope of the variables to be retrieved. Defaults to null. Valid values: local, inherited, null"
          required: false
          schema:
            type: string
        - name: name
          in: query
          description: The names of the variables to return in the collection result.
          required: false
          schema:
            type: string
      responses:
        "200":
          description: The variable collection is returned.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/variableCollection"
              examples:
                application/vnd.sas.collection+json:
                  $ref: "#/components/examples/getProcessVariables"
            application/json:
              schema:
                $ref: "#/components/schemas/variableCollection"
              examples:
                application/json:
                  $ref: "#/components/examples/getProcessVariables"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No process or subprocess exists with the specified ID.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
    patch:
      tags:
        - Workflow Process Variables
      summary: Update variables within a subprocess
      description: Updates variables within a subprocess that is associated with SAS Model Manager. The media type of the returned collection items is application/vnd.sas.workflow.variable+json. Users can update only the variable with a name of modelProjectId. <br><br> <b>Authorization:</b> By default only users in the ApplicationAdministrators group will have access to this endpoint. Authorization rules can be added to this endpoint for any set of users or groups to allow access to this information.
      operationId: updateVariablesFromSubprocess
      parameters:
        - name: processId
          in: path
          description: The workflow process ID.
          required: true
          schema:
            type: string
            format: object-id
        - name: subprocessId
          in: path
          description: The workflow subprocess ID.
          required: true
          schema:
            type: string
            format: object-id
      requestBody:
        description: The details of the variables to update within the subprocess.
        content:
          application/vnd.sas.workflow.variables+json:
            schema:
              $ref: "#/components/schemas/updateVariables"
            examples:
              application/vnd.sas.workflow.variables+json:
                $ref: "#/components/examples/getProcessVariables"
          application/json:
            schema:
              $ref: "#/components/schemas/updateVariables"
            examples:
              application/json:
                $ref: "#/components/examples/getProcessVariables"
      responses:
        "200":
          description: The variables were updated.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/variableCollection"
              examples:
                application/vnd.sas.collection+json:
                  $ref: "#/components/examples/getProcessVariables"
            application/json:
              schema:
                $ref: "#/components/schemas/variableCollection"
              examples:
                application/json:
                  $ref: "#/components/examples/getProcessVariables"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No process or subprocess exists with the specified ID or variable name.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
  "/workflow/processes/{processId}/subprocesses/{subprocessId}/variables/{variableName}":
    get:
      tags:
        - Workflow Process Variables
      summary: Get variable by name within a subprocess
      description: Retrieves a variable with the specified name within a subprocess that is associated with SAS Model Manager. <br><br> <b>Authorization:</b> By default only users in the ApplicationAdministrators group have access to this endpoint. Authorization rules can be added to this endpoint for any set of users or groups to allow access to this information.
      operationId: getVariableFromSubprocess
      parameters:
        - name: processId
          in: path
          description: The workflow process ID.
          required: true
          schema:
            type: string
            format: object-id
        - name: subprocessId
          in: path
          description: The workflow subprocess ID.
          required: true
          schema:
            type: string
            format: object-id
        - name: variableName
          in: path
          description: The variable name.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The variable object was returned.
          content:
            application/vnd.sas.workflow.variable+json:
              schema:
                $ref: "#/components/schemas/variable"
              examples:
                application/vnd.sas.workflow.variable+json:
                  $ref: "#/components/examples/getProcessVariable"
            application/json:
              schema:
                $ref: "#/components/schemas/variable"
              examples:
                application/json:
                  $ref: "#/components/examples/getProcessVariable"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No process or subprocess exists with the specified ID or variable name.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
    put:
      tags:
        - Workflow Process Variables
      summary: Update variable within a subprocess
      description: Updates a variable with the specified name within a subprocess that is associated with SAS Model Manager. Users can update only the variable with a name of modelProjectId. <br><br> <b>Authorization:</b> By default only users in the ApplicationAdministrators group have access to this endpoint. Authorization rules can be added to this endpoint for any set of users or groups to allow access to this information.
      operationId: updateVariableFromSubprocess
      parameters:
        - name: Etag
          in: header
          description: If-Match
          required: true
          schema:
            type: string
        - name: processId
          in: path
          description: The workflow process ID.
          required: true
          schema:
            type: string
            format: object-id
        - name: subprocessId
          in: path
          description: The workflow subprocess ID.
          required: true
          schema:
            type: string
            format: object-id
        - name: variableName
          in: path
          description: The variable name.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/vnd.sas.workflow.variable:
            schema:
              $ref: "#/components/schemas/updateVariable"
            examples:
              application/vnd.sas.workflow.variable:
                $ref: "#/components/examples/getProcessVariable"
          application/json:
            schema:
              $ref: "#/components/schemas/updateVariable"
            examples:
              application/json:
                $ref: "#/components/examples/getProcessVariable"
        description: The variable content to be updated.
      responses:
        "200":
          description: The variable was updated.
          content:
            application/vnd.sas.workflow.variable+json:
              schema:
                $ref: "#/components/schemas/variable"
              examples:
                application/vnd.sas.workflow.variable+json:
                  $ref: "#/components/examples/getProcessVariable"
            application/json:
              schema:
                $ref: "#/components/schemas/variable"
              examples:
                application/json:
                  $ref: "#/components/examples/getProcessVariable"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No process or subprocess exists with the specified ID or variable name.
          content:
            application/vnd.sas.error+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
        "412":
          description: The `If-Match` request header did not match the resource's entity tag (ETag).
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "428":
          description: The request headers did not include a `If-Match` or `If-Unmodified-Since` precondition.
          content:
            application/vnd.sas.models.performance.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/workflow/processes/{processId}/receivedMessages":
    post:
      tags:
        - Workflow Process Variables
      summary: Notify process of received messages
      description: Notifies a process that is associated with a SAS Model Manager client that a message has been received. <br><br> <b>Authorization:</b>  By default only users in the ApplicationAdministrators group have access to this endpoint. Authorization rules can be added to this endpoint for any set of users or groups to allow access to the associated information.
      operationId: submitMessage
      parameters:
        - name: processId
          in: path
          description: The workflow process ID.
          required: true
          schema:
            type: string
            format: object-id
      requestBody:
        content:
          application/vnd.sas.workflow.message+json:
            schema:
              $ref: "#/components/schemas/updateMessage"
            examples:
              application/vnd.sas.workflow.message+json:
                $ref: "#/components/examples/receivedMessageRequest"
          application/json:
            schema:
              $ref: "#/components/schemas/updateMessage"
            examples:
              application/json:
                $ref: "#/components/examples/receivedMessageRequest"
        description: The message to send.
      responses:
        "204":
          description: The message was received.
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.error:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No process exists with the specified ID.
          content:
            application/vnd.sas.error:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
        "409":
          description: The request could not be completed due to a conflict with the current state of the resource. There are no active intermediate catching events for the specified message.
          content:
            application/vnd.sas.error:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/conflict"
  /workflowTasks:
    get:
      operationId: getWorkflowTasks
      summary: Get active workflow tasks
      tags:
        - Workflow Tasks
      description: Returns active workflow tasks that are associated with SAS Model Manager. These are tasks where the authenticated user is either the owner or a potential owner. The tasks are managed using the Workflow service.
      parameters:
        - name: start
          description: The index of the first workflow tasks to return.
          in: query
          schema:
            type: integer
            format: int64
            default: 0
        - name: limit
          description: The maximum number of workflow tasks to return.
          in: query
          schema:
            type: integer
            format: int32
            default: 10
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/workflowTask"
            application/json:
              schema:
                $ref: "#/components/schemas/workflowTask"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/workflowTasks/{taskId}":
    get:
      operationId: getWorkflowTask
      summary: Get a workflow task
      description: Returns an active task for a workflow process that is associated with a project in SAS Model Manager. The tasks that are returned have the authorized user as the owner or a potential owner.
      tags:
        - Workflow Tasks
      parameters:
        - name: taskId
          in: path
          description: The ID of a task from the tasks collection.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.workflow.object.task+json:
              schema:
                $ref: "#/components/schemas/workflowTask"
            application/json:
              schema:
                $ref: "#/components/schemas/workflowTask"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.workflow.object.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: No task with the specified ID exists at the requested path.
          content:
            application/vnd.sas.workflow.object.task+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/workflowTasks/{taskId}/prompts":
    get:
      operationId: getTaskPrompts
      summary: Get a list of workflow task prompts
      description: Returns a list of all prompts that are associated with a workflow user task. The prompts are part of the workflow definition.
      tags:
        - Workflow Tasks
      parameters:
        - name: taskId
          in: path
          description: The ID of a task from the tasks collection.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/taskPrompt"
            application/json:
              schema:
                $ref: "#/components/schemas/taskPrompt"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: No task with the specified ID exists at the requested path.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/workflowTasks/{taskId}/prompts/{promptId}":
    get:
      operationId: getTaskPrompt
      summary: Get a workflow task prompt
      description: Returns a specific prompt that is associated with a workflow user task. The prompts are part of the workflow definition.
      tags:
        - Workflow Tasks
      parameters:
        - name: taskId
          in: path
          description: The ID of a task from the tasks collection.
          required: true
          schema:
            type: string
        - name: promptId
          in: path
          description: The ID of a prompt from the prompts collection.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.workflow.object.task.prompt+json:
              schema:
                $ref: "#/components/schemas/taskPrompt"
            application/json:
              schema:
                $ref: "#/components/schemas/taskPrompt"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.workflow.object.task.prompt+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: No task or prompt with the specified ID exists at the requested path.
          content:
            application/vnd.sas.workflow.object.task.prompt+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/projects/{projectId}/kpis":
    get:
      summary: Get KPIs for a project
      operationId: getKpi
      description: Retrieves key performance indicators (KPIs) that are associated with a specific project.
      tags:
        - KPIs
      parameters:
        - name: projectId
          in: path
          description: The ID of a project in the common model repository.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/kpiCollection"
            application/json:
              schema:
                $ref: "#/components/schemas/kpiCollection"
        "404":
          description: The project id is not valid
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "409":
          description: The KPI table fails to load.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
    post:
      summary: Create KPIs for a project
      operationId: createKpi
      description: Creates KPIs for a specific project.
      tags:
        - KPIs
      parameters:
        - name: projectId
          in: path
          description: The ID of a project in the common model repository.
          required: true
          schema:
            type: string
      responses:
        "201":
          description: The request succeeded.
          headers:
            Location:
              description: /modelManagement/projects/{projectId}/kpis
              schema:
                type: string
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/kpiCollection"
            application/json:
              schema:
                $ref: "#/components/schemas/kpiCollection"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: The project id is not valid
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/projects/{projectId}/alertRules":
    get:
      summary: Get project alert rules
      operationId: getAlertRules
      description: Retrieves the alert rules for a specific project.
      tags:
        - Alert Rules
      parameters:
        - name: projectId
          in: path
          description: The ID of a project in the common model repository.
          required: true
          schema:
            type: string
        - name: start
          description: The index of the first performance task to return.
          in: query
          schema:
            type: integer
            format: int64
            default: 0
        - name: limit
          description: The maximum number of performance tasks to return.
          in: query
          schema:
            type: integer
            format: int32
            default: 10
        - name: filter
          in: query
          description: The criteria for filtering the performance task definitions. See [Filtering in REST APIs](https://developer.sas.com/rest-apis/modelManagement/docs/getting-started/usage-notes#filtering).
          schema:
            type: string
            format: string
        - name: sortBy
          in: query
          description: The criteria for sorting the performance task definitions. See [Sorting in REST APIs](https://developer.sas.com/rest-apis/modelManagement/docs/getting-started/usage-notes#sorting).
          schema:
            type: string
            format: sort-criteria
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/alertRuleCollection"
            application/json:
              schema:
                $ref: "#/components/schemas/alertRuleCollection"
        "400":
          description: The rule definition is not valid
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: The project id is not valid
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
    post:
      summary: Create a project alert rule
      operationId: createAlertRule
      description: Creates an alert rule for a project.
      tags:
        - Alert Rules
      parameters:
        - name: projectId
          in: path
          description: The ID of a project in the common model repository.
          required: true
          schema:
            type: string
      responses:
        "201":
          description: The request succeeded.
          headers:
            Location:
              description: /projects/{projectId}/alertRules
              schema:
                type: string
          content:
            application/vnd.sas.models.alert.rule+json:
              schema:
                $ref: "#/components/schemas/alertRule"
            application/json:
              schema:
                $ref: "#/components/schemas/alertRule"
        "400":
          description: The project ID was not specified.
          content:
            application/vnd.sas.models.alert.rule+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: The project ID is not valid.
          content:
            application/vnd.sas.models.alert.rule+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/projects/{projectId}/alertRules/{alertRuleId}":
    get:
      summary: Get project alert rule
      operationId: getAlertRule
      description: Retrieves an alert rule by ID for a project.
      tags:
        - Alert Rules
      parameters:
        - name: projectId
          in: path
          description: The ID of a project in the common model repository.
          required: true
          schema:
            type: string
        - name: alertRuleId
          in: path
          description: The ID of an alert rule.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.models.alert.rule+json:
              schema:
                $ref: "#/components/schemas/alertRule"
            application/json:
              schema:
                $ref: "#/components/schemas/alertRule"
        "404":
          description: The project ID is not valid.
          content:
            application/vnd.sas.models.alert.rule+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
    delete:
      summary: Delete a project alert rule
      operationId: deleteAlertRule
      description: Deletes an alert rule from a project using the ID.
      tags:
        - Alert Rules
      parameters:
        - name: projectId
          in: path
          description: The ID of a project in the common model repository.
          required: true
          schema:
            type: string
        - name: alertRuleId
          in: path
          description: The ID of an alert rule.
          required: true
          schema:
            type: string
      responses:
        "204":
          description: The request succeeded.
        "404":
          description: The project ID is not valid.
  "/projects/{projectId}/alertRules/{alertRuleId}/history":
    get:
      summary: Get alert rule history
      operationId: getAlertRuleHistory
      description: Retrieves the project history for an alert rule.
      tags:
        - Alert Rules
      parameters:
        - name: projectId
          in: path
          description: The ID of a project in the common model repository.
          required: true
          schema:
            type: string
        - name: alertRuleId
          in: path
          description: The ID of an alert rule.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/alertRuleHistoryCollection"
            application/json:
              schema:
                $ref: "#/components/schemas/alertRuleHistoryCollection"
        "404":
          description: The project ID is not valid.
          content:
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
    post:
      summary: Create alert rule historical versions
      operationId: createAlertRuleHistory
      description: Creates the project history versions for an alert rule.
      tags:
        - Alert Rules
      parameters:
        - name: projectId
          in: path
          description: The ID of a project in the common model repository.
          required: true
          schema:
            type: string
        - name: alertRuleId
          in: path
          description: The ID of an alert rule.
          required: true
          schema:
            type: string
      responses:
        "201":
          description: The request succeeded.
          content:
            application/vnd.sas.models.alert.rule.history+json:
              schema:
                $ref: "#/components/schemas/alertRuleHistory"
            application/json:
              schema:
                $ref: "#/components/schemas/alertRuleHistory"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.models.alert.rule.history+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: The project ID is not valid.
          content:
            application/vnd.sas.models.alert.rule.history+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/projects/{projectId}/alertRules/{alertRuleId}/history/{historyId}":
    get:
      summary: Get a historical version of an alert rule
      operationId: getAlertRuleHistoryById
      description: Retrieves the project history versions of an alert rule.
      tags:
        - Alert Rules
      parameters:
        - name: projectId
          in: path
          description: The ID of a project in the common model repository.
          required: true
          schema:
            type: string
        - name: alertRuleId
          in: path
          description: The ID of an alert rule.
          required: true
          schema:
            type: string
        - name: historyId
          in: path
          description: The ID of an alert rule historical version.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.models.alert.rule.history+json:
              schema:
                $ref: "#/components/schemas/alertRuleHistory"
            application/json:
              schema:
                $ref: "#/components/schemas/alertRuleHistory"
        "404":
          description: The project id is not valid
          content:
            application/vnd.sas.models.alert.rule.history+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  /execution:
    post:
      summary: Execute a project file
      operationId: executeProjectFile
      description: Executes the code within a project file.
      tags:
        - Execution
      parameters:
        - name: projectId
          in: query
          description: The ID of a project in the common model repository.
          required: true
          schema:
            type: string
        - name: name
          in: query
          description: The name of a project file.
          required: true
          schema:
            type: string
      responses:
        "201":
          description: The request succeeded.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/executionStatus"
        "400":
          description: The request was invalid.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
        "404":
          description: The project id is not valid
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  "/models/{modelId}/mappedCode":
    post:
      summary: Generate mapped model score code
      operationId: generateMappedCode
      description: Generates mapped score code for a model that is wrapped for use with the Score Execution service. The model is managed in the common model repository by the Model Repository API. For more information, see the Model Repository API.
      tags:
        - Code
      parameters:
        - name: modelId
          in: path
          description: The ID of a model in the common model repository.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/vnd.sas.score.code.generation.request+json:
            schema:
              $ref: "#/components/schemas/scoreCodeGenerationRequest"
            examples:
              default:
                $ref: "#/components/examples/getMappedCodeRequest"
          application/json:
            schema:
              $ref: "#/components/schemas/scoreCodeGenerationRequest"
            examples:
              default:
                $ref: "#/components/examples/getMappedCodeRequest"
        description: Information needed to request score code generation.
        required: true
      responses:
        "201":
          description: The request succeeded.
          content:
            application/vnd.sas.score.mapped.code+json:
              schema:
                $ref: "#/components/schemas/mappedCode"
              examples:
                default:
                  $ref: "#/components/examples/getMappedCodeResponse"
            application/json:
              schema:
                $ref: "#/components/schemas/mappedCode"
              examples:
                default:
                  $ref: "#/components/examples/getMappedCodeResponse"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.score.mapped.code+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No model exists at the requested path.
          content:
            application/vnd.sas.score.mapped.code+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
  "/models/{modelId}/versions/{modelVersionIDOrName}/mappedCode":
    post:
      summary: Generate mapped model version score code
      operationId: createModelVersionMappedCode
      description: Generates mapped score code for a model version that is wrapped for use with the Score Execution service. The model is managed in the common model repository by the Model Repository API. For more information, see the Model Repository API.
      tags:
        - Code
      parameters:
        - name: modelId
          in: path
          description: The ID of a model in the common model repository.
          required: true
          schema:
            type: string
        - name: modelVersionIDOrName
          in: path
          description: Model version UUID or version name.
          required: true
          schema:
            type: string
        - name: If-Match
          in: header
          description: If-Match
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/vnd.sas.score.code.generation.request+json:
            schema:
              $ref: "#/components/schemas/scoreCodeGenerationRequest"
            examples:
              default:
                $ref: "#/components/examples/getMappedCodeRequest"
          application/json:
            schema:
              $ref: "#/components/schemas/scoreCodeGenerationRequest"
            examples:
              default:
                $ref: "#/components/examples/getMappedCodeRequest"
        description: Information needed to request score code generation.
        required: true
      responses:
        "201":
          description: The request succeeded.
          headers:
            ETag:
              description: A tag that identifies the revision of this object.
              schema:
                type: string
            Last-Modified:
              description: The last modified timestamp of this object.
              schema:
                type: string
                format: date-time
            Location:
              description: The URL of the performance task definition.
              schema:
                type: string
                format: uri
          content:
            application/vnd.sas.score.mapped.code+json:
              schema:
                $ref: "#/components/schemas/mappedCode"
              examples:
                default:
                  $ref: "#/components/examples/getMappedCodeResponse"
            application/json:
              schema:
                $ref: "#/components/schemas/mappedCode"
              examples:
                default:
                  $ref: "#/components/examples/getMappedCodeResponse"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.score.mapped.code+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/badRequest"
        "404":
          description: No model exists at the requested path.
          content:
            application/vnd.sas.score.mapped.code+json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
              examples:
                default:
                  $ref: "#/components/examples/notFound"
  /reports:
    post:
      operationId: createModelComparisonReport
      summary: Create a model comparison report
      description: Creates a model comparison report.
      tags:
        - Model Comparison Reports
      requestBody:
        content:
          application/vnd.sas.models.report.comparison.request+json:
            schema:
              $ref: "#/components/schemas/reportRequest"
          application/json:
            schema:
              $ref: "#/components/schemas/reportRequest"
        description: The definition of the report request.
        required: true
      responses:
        "201":
          description: A model comparison report was created.
          content:
            application/vnd.sas.models.report.comparison.model+json:
              schema:
                $ref: "#/components/schemas/reportResponse"
            application/json:
              schema:
                $ref: "#/components/schemas/reportResponse"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.models.report.comparison.model+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  /news:
    get:
      operationId: getRssFeed
      summary: Get the RSS news feed
      description: Retrieves the RSS news feed from SAS Communities for SAS Model Manager.
      tags:
        - RSS Feed
      parameters:
        - name: Accept-Item
          in: header
          required: false
          description: " The desired performance report data representation."
          schema:
            type: string
            enum:
              - application/rss+xml
      responses:
        "200":
          description: The RSS XML content is retrieved.
          content:
            application/rss+xml:
              schema:
                type: string
  /reports/multivariatePredictionSummary:
    post:
      operationId: GetMultiVariatePredictionSummary
      summary: Get multi-variate prediction summary
      description: Retrieves distinct values along with the frequency for multi-variate prediction variables.
      tags:
        - Multi-Variate Prediction Summary
      requestBody:
        content:
          application/vnd.sas.models.multi.variate.prediction.summary.request+json:
            schema:
              $ref: "#/components/schemas/multiVariatePredictionSummaryRequest"
          application/json:
            schema:
              $ref: "#/components/schemas/multiVariatePredictionSummaryRequest"
        description: The definition of the report request.
        required: true
      responses:
        "200":
          description: The request succeeded.
          content:
            application/vnd.sas.models.multi.variate.prediction.summary+json:
              schema:
                $ref: "#/components/schemas/multiVariatePredictionSummaryResponse"
            application/json:
              schema:
                $ref: "#/components/schemas/multiVariatePredictionSummaryResponse"
        "400":
          description: The request was invalid.
          content:
            application/vnd.sas.models.multi.variate.prediction.summary.request+json:
              schema:
                $ref: "#/components/schemas/error2"
            application/json:
              schema:
                $ref: "#/components/schemas/error2"
  /performanceTasks/performanceJobs/latestJob:
    get:
      operationId: getLatestJob
      tags:
        - Performance Jobs
      summary: Get latest performance job
      description: Returns the latest performance job that is associated with the specified model, model version, and project.
      parameters:
        - name: modelId
          in: query
          required: true
          description: The unique identifier for the model.
          schema:
            type: string
        - name: projectId
          in: query
          required: true
          description: The unique identifier for the project.
          schema:
            type: string
        - name: start
          in: query
          required: false
          description: The 0-based start index of a paginated request.
          schema:
            type: integer
            format: int32
            minimum: 0
            default: 0
        - name: limit
          in: query
          required: false
          description: The maximum number of items to return in this request.
          schema:
            type: integer
            format: int32
            default: 20
      responses:
        "200":
          description: The request succeeded.
          headers:
            Cache-Control:
              description: Controls how the response is cached by the browser.
              schema:
                type: string
            Content-Length:
              description: The size, in bytes, of the response body.
              schema:
                type: number
            Content-Security-Policy:
              description: The security policy chosen to prevent code execution vulnerabilities.
              schema:
                type: string
            Content-Type:
              description: The media type of the response.
              schema:
                type: string
            Date:
              description: The date of the response.
              schema:
                type: string
                format: date-time
            Etag:
              description: The entity tag for the latest job.
              schema:
                type: string
            Expires:
              description: The date after which the response is considered expired.
              schema:
                type: string
                format: date-time
            Last-Modified:
              description: The timstamp the job was last modified.
              schema:
                type: string
                format: date-time
            Pragma:
              description: Used for backward compatibility with HTTP/1.0 caches that do not support the Cache-Control HTTP/1.1 header.
              schema:
                type: string
            Sas-Service-Response-Flag:
              description: A service response flag that is specific to SAS.
              schema:
                type: boolean
            Set-Cookie:
              description: The cookie sent from the server to the browser.
              schema:
                type: string
            Strict-Transport-Security:
              description: Enforces secure connections to the server by specifying a duration during which browsers should communicate only using HTTPS.
              schema:
                type: string
            Vary:
              description: Specifies headers that a cache should consider when determining if a cached response is valid.
              schema:
                type: string
            X-Content-Type-Options:
              description: Prevents browsers from interpreting files as a different MIME type than what is specified in the `Content-Type` header.
              schema:
                type: string
            X-Csrf-Header:
              description: A marker to inform the server that the request contains a CSRF token.
              schema:
                type: string
            X-Csrf-Token:
              description: The CSRF token that the server validates to ensure the authenticity of the request.
              schema:
                type: string
            X-Xss-Protection:
              description: Configures browser-based cross-site scripting (XSS) filters.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/latestJob"
              examples:
                default:
                  $ref: "#/components/examples/getLatestJob"
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/latestJob"
              examples:
                default:
                  $ref: "#/components/examples/getLatestJob"
  "/projects/{projectId}/models/{modelId}/healthMetrics":
    get:
      operationId: getHealthMetrics
      tags:
        - Metrics
      summary: Get performance health metrics
      description: Returns the performance health metrics that are associated with the specified model, model version, and project.
      parameters:
        - name: modelId
          in: path
          description: The identifier of a specific model.
          required: true
          schema:
            type: string
        - name: projectId
          in: path
          description: The identifier of a specific project.
          required: true
          schema:
            type: string
        - name: modelVersionId
          in: query
          description: The identifier of a specific model version.
          required: false
          schema:
            type: string
        - name: start
          in: query
          required: false
          description: The 0-based start index of a paginated request.
          schema:
            type: integer
            format: int32
            minimum: 0
            default: 0
        - name: limit
          in: query
          required: false
          description: The maximum number of items to return in this request.
          schema:
            type: integer
            format: int32
            default: 20
      responses:
        "200":
          description: The request succeeded.
          headers:
            Cache-Control:
              description: Controls how the response is cached by the browser.
              schema:
                type: string
            Content-Length:
              description: The size, in bytes, of the response body.
              schema:
                type: number
            Content-Security-Policy:
              description: The security policy chosen to prevent code execution vulnerabilities.
              schema:
                type: string
            Content-Type:
              description: The media type of the response.
              schema:
                type: string
            Date:
              description: The date of the response.
              schema:
                type: string
                format: date-time
            Expires:
              description: The date after which the response is considered expired.
              schema:
                type: string
                format: date-time
            Pragma:
              description: Used for backward compatibility with HTTP/1.0 caches that do not support the Cache-Control HTTP/1.1 header.
              schema:
                type: string
            Sas-Service-Response-Flag:
              description: A service response flag that is specific to SAS.
              schema:
                type: boolean
            Set-Cookie:
              description: The cookie sent from the server to the browser.
              schema:
                type: string
            Strict-Transport-Security:
              description: Enforces secure connections to the server by specifying a duration during which browsers should communicate only using HTTPS.
              schema:
                type: string
            Vary:
              description: Specifies headers that a cache should consider when determining if a cached response is valid.
              schema:
                type: string
            X-Content-Type-Options:
              description: Prevents browsers from interpreting files as a different MIME type than what is specified in the `Content-Type` header.
              schema:
                type: string
            X-Csrf-Header:
              description: A marker to inform the server that the request contains a CSRF token.
              schema:
                type: string
            X-Csrf-Token:
              description: The CSRF token that the server validates to ensure the authenticity of the request.
              schema:
                type: string
            X-Xss-Protection:
              description: Configures browser-based cross-site scripting (XSS) filters.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/healthMetricsCollection"
              examples:
                default:
                  $ref: "#/components/examples/getHealthMetrics"
            application/vnd.sas.collection+json:
              schema:
                $ref: "#/components/schemas/healthMetricsCollection"
              examples:
                default:
                  $ref: "#/components/examples/getHealthMetrics"
components:
  requestBodies:
    updateVariables:
      description: The variables to set on the process.
      content:
        application/vnd.sas.workflow.variables+json:
          schema:
            $ref: "#/components/schemas/updateVariables"
        application/json:
          schema:
            $ref: "#/components/schemas/updateVariables"
    workflowProcessRequest:
      description: The workflow object process request type describes what is required to start a workflow process.
      content:
        application/vnd.sas.workflow.object.process.request+json:
          schema:
            $ref: "#/components/schemas/workflowProcessRequest"
        application/json:
          schema:
            $ref: "#/components/schemas/workflowProcessRequest"
  schemas:
    performanceJob:
      title: Performance Job
      description: Contains information about the performance job.
      type: object
      properties:
        code:
          type: string
          description: The performance job SAS code.
        createdBy:
          type: string
          description: The user who created the job.
        creationTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when the job was created, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
        modifiedBy:
          type: string
          description: The user who most recently modified the job.
        modifiedTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when the job was last modified, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
        state:
          type: string
          description: The performance job state (running | completed | completedWithWarnings | completedWithErrors ).
        jobReqId:
          type: string
          description: The identifier for a job request.
    performanceTask:
      title: Performance Task
      description: Contains information about the performance task.
      type: object
      properties:
        assessAlert:
          type: string
          description: The assessment measurements alert condition.
        assessWarn:
          type: string
          description: The assessment measurements warning condition.
        characteristicAlert:
          type: string
          description: The characteristic measurements alert condition.
        characteristicWarn:
          type: string
          description: The characteristic measurements warning condition.
        createdBy:
          type: string
          description: The user who created the task.
        creationTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when the task was created, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
        dataLibrary:
          type: string
          description: The performance table library URI.
        dataPrefix:
          type: string
          description: The performance data table prefix.
        id:
          type: string
          description: The identifier for a performance task.
        inputVariables:
          type: array
          items:
            type: string
            description: The input variables.
        maxBins:
          type: integer
          format: int32
          description: The maximum bins number.
        modelId:
          type: array
          items:
            type: string
            description: The system-generated identifier of a model.
        modifiedBy:
          type: string
          description: The user who most recently modified the task.
        modifiedTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when the job was last modified, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
        outputVariables:
          type: array
          items:
            type: string
            description: The output variable names.
        performanceResultSaved:
          type: boolean
          description: Indicates whether the performance results are saved.
        resultLibrary:
          type: string
          description: The performance output table library URI.
        scoreExecutionRequired:
          type: boolean
          description: Indicates whether the scoring task execution is required.
        stabilityAlert:
          type: string
          description: The stability measurements alert condition.
        stabilityWarn:
          type: string
          description: The stability measurements warning condition.
        includeAllData:
          type: boolean
          description: Indicates whether to run a performance job against all the data tables in a library.
        loadPerformanceResult:
          type: boolean
          description: Indicates to load performance result data.
        championMonitored:
          type: boolean
          description: Indicates to monitor the project champion model.
        challengerMonitored:
          type: boolean
          description: Indicates to monitor challenger models.
        traceOn:
          type: boolean
          description: Indicates whether to turn on tracing.
        version:
          type: integer
          description: The version number of application/vnd.sas.models.performance.task+json.
        variableBinMap:
          type: object
          description: Variable bins
    performanceTaskCollection:
      title: Performance Task Collection
      description: The performance task representations.
      allOf:
        - $ref: "#/components/schemas/baseCollection2"
        - type: object
          required:
            - items
          properties:
            items:
              type: array
              items:
                $ref: "#/components/schemas/performanceTask"
              description: An array consisting of performance task resources.
    performanceJobCollection:
      title: Performance Job Collection
      description: The performance job representations.
      allOf:
        - $ref: "#/components/schemas/baseCollection2"
        - type: object
          required:
            - items
          properties:
            items:
              type: array
              items:
                $ref: "#/components/schemas/performanceJob"
              description: An array consisting of performance task resources.
    performanceSummaryKpi:
      title: Performance KPI Summary
      description: Contains summary information about the KPIs that are apart of a performance definition.
      type: object
      properties:
        misClassification:
          type: string
        falsePositive:
          type: string
        recall:
          type: string
        r_Squared:
          type: string
        averageSquaredError:
          type: string
    performancePeriodSummary:
      title: Performance Period Summary
      description: Contains summary information about the time period for a performance definition.
      type: object
      properties:
        name:
          type: string
          description: The label name for the time period.
        observations:
          type: integer
          description: The sum for the time period.
    performanceModelSummary:
      title: Performance Model Summary
      description: Contains summary information about a model that is part of a performance definition.
      type: object
      properties:
        modelId:
          type: string
          description: The ID for the model that is specified within the performance definition.
        rank:
          type: integer
          description: The rank of all models within the performance definition.
        periods:
          type: array
          items:
            $ref: "#/components/schemas/performancePeriodSummary"
        kpi:
          $ref: "#/components/schemas/performanceSummaryKpi"
    performanceTaskExecutionSummary:
      title: Performance Task Execution Summary
      description: Contains summary information about the execution of a performance definition.
      type: object
      properties:
        taskId:
          type: string
          description: The ID of the performance task definition.
        numberPeriods:
          type: string
          description: The number of time periods.
        totalObservations:
          type: string
          description: The total number of observations for the performance task.
        periods:
          type: array
          items:
            $ref: "#/components/schemas/performancePeriodSummary"
        models:
          type: array
          items:
            $ref: "#/components/schemas/performanceModelSummary"
    performanceTaskState:
      title: Performance Task Execution State
      description: Contains information about the execution state of a performance task.
      type: object
      properties:
        state:
          type: string
          description: The state of the performance execution.
    association:
      title: Association
      type: object
      description: The association type describes an object, such as a model repository project, that will be associated with a workflow process.
      properties:
        solutionObjectType:
          type: string
          description: The type of solution object associated with the started workflow process. This type is specified by the solution.
        solutionObjectId:
          type: string
          description: The identifier of the solution object.
        solutionObjectName:
          type: string
          description: The name of the solution object.
        solutionObjectUri:
          type: string
          description: The URI of the solution object.
        solutionObjectMediaType:
          type: string
          description: The media type of the solution object.
    workflowAssociation:
      title: Workflow Association
      type: object
      description: The workflow object association type describes an association between a Workflow process, that is managed by the Workflow service, and a solution object such as a Model Repository project. The association exists so that when a workflow process executes, the Model Repository service can know that a project or model has a workflow process using it. This enables the Model Repository service to lock certain functions or update object data based on workflow changes.
      properties:
        id:
          type: string
          description: The unique identifier for the association.
        processId:
          type: string
          description: The identifier of the workflow process.
        processName:
          type: string
          description: The name of workflow process.
        parentProcessId:
          type: string
          description: The identifier of the main workflow process. It is populated if the associated process is a sub-process.
        solutionObjectType:
          type: string
          description: The type of solution object associated with the workflow process. This type is specified by the solution.
        solutionObjectId:
          type: string
          description: The identifier of the solution object.
        solutionObjectName:
          type: string
          description: The name of the solution object.
        solutionObjectUri:
          type: string
          description: The URI of the solution object.
        solutionObjectMediaType:
          type: string
          description: The media type of the solution object.
        version:
          type: integer
          format: int32
          description: The version number for this media type's schema.
        links:
          description: The links that apply to the workflow association.
          type: array
          items:
            $ref: "#/components/schemas/link"
    workflowProcess:
      title: Workflow Process
      description: The workflow object process type describes a workflow process task that is associated with SAS Model Manager. The process is managed by the Workflow service, but is used in SAS Model Manager to add workflow control to a model project.
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the workflow process.
        parentId:
          type: string
          description: The identifier of the main workflow process. That is populated if this process is a sub-process.
        name:
          type: string
          description: The name of the workflow process.
        createdTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when this definition revision was created, in the format of 'YYYY-MM-DDThh:mm:ss.sssZ'.
        createdBy:
          type: string
          description: The user ID that created this workflow.
        state:
          type: string
          description: The current processing state(In Progress | Suspended) of the workflow.
        description:
          type: string
          description: The description of the process.
        associations:
          type: array
          description: A list of associations associated with the process.
          items:
            $ref: "#/components/schemas/workflowAssociation"
        version:
          type: integer
          format: int32
          description: The version number for this media type's schema.
        links:
          description: The links that apply to the workflow process.
          type: array
          items:
            $ref: "#/components/schemas/link"
    workflowProcessRequest:
      title: Workflow Process Request
      description: The workflow object process request type describes what is required to start a workflow process.
      type: object
      properties:
        variables:
          type: array
          description: The variables.
          items:
            $ref: "#/components/schemas/variable"
        association:
          type: object
          description: The solution object to be associated with a running process.
          properties:
            solutionObjectType:
              type: string
              description: The type of solution object associated with the started workflow process. This type is specified by the solution.
            solutionObjectId:
              type: string
              description: The identifier of the solution object.
            solutionObjectName:
              type: string
              description: The name of the solution object.
            solutionObjectUri:
              type: string
              description: The URI of the solution object.
            solutionObjectMediaType:
              type: string
              description: The media type of the solution object.
    workflowTask:
      title: Workflow Task
      type: object
      description: The workflow object task type describes a workflow user task that is associated with a model project. The task is viewable only by a user who is an actual owner or potential owner of the task. Potential and actual task owners are defined in the workflow definition for a workflow process.
      properties:
        id:
          type: string
          description: The unique identifier of the workflow task.
        processId:
          type: string
          description: The identifier of the associated workflow process.
        processTaskId:
          type: string
          description: The identifier of the task in the Workflow service.
        name:
          type: string
          description: The name of the task.
        definitionName:
          type: string
          description: The name of the definition that defines the process.
        actualOwner:
          type: string
          description: The user ID of the owner of the task.
        state:
          type: string
          description: The state (Started | Suspended | Canceled | Completed) of the task.
        stateTimeStamp:
          type: string
          format: date-time
          description: The timestamp of the last state change for the task.
        taskDueTimeStamp:
          type: string
          format: date-time
          description: The timestamp of when the task is due to be completed.
        creationTimeStamp:
          type: string
          format: date-time
          description: The timestamp of when this definition revision was created.
        createdBy:
          type: string
          description: The user ID that created this workflow.
        associations:
          type: array
          description: Collection of projects that are associated with this task.
          items:
            $ref: "#/components/schemas/workflowAssociation"
        links:
          description: The links that apply to the workflow task.
          type: array
          items:
            $ref: "#/components/schemas/link"
        resourceCollection:
          type: array
          description: The array of resource representations.
          items:
            $ref: "#/components/schemas/collection2"
    taskPrompt:
      title: Workflow Task Prompt
      type: object
      description: A workflow task prompt describes user input that is associated with a task.
      properties:
        id:
          type: string
          description: The unique identifier of the prompt.
        name:
          type: string
          description: The name of the prompt.
        variableType:
          type: string
          description: The type of the variable associated with the prompt.
        variableName:
          type: string
          description: The name of the variable associated with the prompt.
        values:
          type: array
          description: An optional collection of values that can be set on the associated variable.
          items:
            $ref: "#/components/schemas/promptValue"
        required:
          type: string
          description: A flag that determines whether a value must be provided for this prompt. Valid values [true, false].
        defaultValueId:
          type: string
          description: The identifier of the prompt value, which defines the default value.
        actualValue:
          type: string
          description: The actual value that has been specified for this prompt.
        version:
          type: integer
          format: int32
          description: This media type's schema version number.
        links:
          description: The links that apply to the workflow process.
          type: array
          items:
            $ref: "#/components/schemas/link"
    promptValue:
      title: Workflow Task Prompt Value
      type: object
      description: A name-value pair that is specified as a possible value for a prompt.
      properties:
        id:
          type: string
          description: The identifier of the prompt value.
        name:
          type: string
          description: The name of the prompt value.
        value:
          type: string
          description: The value that has been specified for this prompt.
    kpiCollection:
      title: KPI Collection
      description: The key performance indicator (KPI) representations.
      allOf:
        - $ref: "#/components/schemas/baseCollection2"
        - type: object
          required:
            - items
          properties:
            items:
              type: array
              items:
                $ref: "#/components/schemas/kpi"
              description: An array consisting of KPI resources.
    kpi:
      title: Project KPI
      type: object
      description: The project KPI defines the KPI key and value, and indicates whether the KPI is provided by the system o a custom KPI provided by a user.
      properties:
        name:
          type: string
          description: The name of the KPI.
        value:
          type: string
          description: The value of the KPI.
        systemKpiFlag:
          type: boolean
          description: Indicates whether the KPI is system provided.
    alertRuleCollection:
      title: Alert Rule Collection
      description: The alert rule representations.
      allOf:
        - $ref: "#/components/schemas/baseCollection2"
        - type: object
          required:
            - items
          properties:
            items:
              type: array
              items:
                $ref: "#/components/schemas/alertRule"
              description: An array consisting of alert rule resources.
    alertRule:
      title: Alert Rule
      description: The alert rule representation.
      properties:
        projectId:
          type: string
          description: The ID of a project in the common model repository.
        name:
          type: string
          description: The name of the alert rule.
        description:
          type: string
          description: The description of the alert rule.
        kpi:
          type: string
          description: The name of the KPI.
        severity:
          type: string
          description: The severity of the KPI.
        operator:
          type: string
          description: The operator used for comparison. Operators such as greater than, less than, equal to, and so on.
        value:
          type: number
          description: The value of the KPI.
        violations:
          type: integer
          description: The number of violations.
        modelRole:
          type: string
          description: The role of a model.
        triggered:
          type: boolean
          description: Indicates whether the rule is triggered.
        versionNum:
          type: integer
          description: The version number of the rule.
    alertRuleHistoryCollection:
      title: Alert Rule History Collection
      description: The alert rule history representations.
      allOf:
        - $ref: "#/components/schemas/baseCollection2"
        - type: object
          required:
            - items
          properties:
            items:
              type: array
              items:
                $ref: "#/components/schemas/alertRuleHistory"
              description: An array consisting of alert rule history resources.
    alertRuleHistory:
      title: Alert Rule History
      description: The alert rule representation.
      properties:
        projectId:
          type: string
          description: The ID of a project in the common model repository.
        name:
          type: string
          description: The name of the alert rule.
        description:
          type: string
          description: The description of the alert rule.
        kpi:
          type: string
          description: The name of the KPI.
        severity:
          type: string
          description: The severity of the KPI.
        operator:
          type: string
          description: The operator used for comparison. Operators such as greater than, less than, equal to, and so on.
        value:
          type: number
          description: The value of the KPI.
        violations:
          type: integer
          description: The number of violations.
        modelRole:
          type: string
          description: The role of a model.
        triggered:
          type: boolean
          description: Indicates whether the rule is triggered.
        versionNum:
          type: integer
          description: The version number of the rule.
        alertRuleId:
          type: string
          description: The ID of the alert rule.
        ruleCreationTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when the rule was created, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
        ruleModifiedTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when the rule was last modified, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
        ruleCreatedBy:
          type: string
          description: The user who created the rule.
    executionStatus:
      title: Execution Status
      description: Contains information about the execution status.
      type: object
      properties:
        executedBy:
          type: string
          description: The user who performed the execution of the rule.
        status:
          type: string
          description: The status of the execution results.
        log:
          type: string
          description: The content of the log.
    reportRequest:
      title: Report Request
      description: Contains information about a report request.
      type: object
      properties:
        name:
          type: string
          description: The name of the report.
        description:
          type: string
          description: The description of the report.
        modelUris:
          type: array
          description: Collection of model URIs, which are used to perform a model comparison.
          items:
            type: string
    uriReference:
      title: URI Reference
      description: Contains information about the URI reference.
      properties:
        name:
          type: string
          description: The name of the URI reference.
        uri:
          type: string
          description: The value of the URI.
        uriType:
          type: string
          description: The child or reference of the URI.
        mediaType:
          type: string
          description: The media type of this URI.
        contentType:
          type: string
          description: The content type that the URI points to.
    variable:
      title: Variable
      description: Contains information about the variable.
      properties:
        createdBy:
          type: string
          description: The user that created the variable.
        modifiedBy:
          type: string
          description: The user that last modified the variable.
        creationTimeStamp:
          type: string
          description: The timestamp for when the variable was created, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
          format: date-time
        modifiedTimeStamp:
          type: string
          description: The timestamp for when the variable was last modified, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
          format: date-time
        name:
          type: string
          description: The name of the variable.
        description:
          type: string
          description: The description of this variable.
        role:
          type: string
          description: "The role of the variable. Valid values are: input, output, target"
        type:
          type: string
          description: "The type of variable. Valid values are: string, decimal, integer, boolean, date, datetime"
        level:
          type: string
          description: "The measurement level of the variable. Valid values are: binary, interval, nominal, ordinal"
        format:
          type: string
          description: The format of the variable. An example is int32.
        length:
          type: integer
          description: The length of the variable.
        version:
          type: integer
          description: The variable representation version. The version is 2.
          default: 2
    updateVariable:
      title: Update Variable
      description: Contains information about the variable that is updated.
      properties:
        version:
          type: integer
          description: The variable schema version.
        scope:
          type: string
          description: "The scope of the variable. Valid values: local, inherited]"
        type:
          type: string
          description: "The type of the variable. Valid values: string, number, dateTime, boolean"
        name:
          type: string
          description: The variable name.
        value:
          description: The variable value.
          oneOf:
            - type: string
            - type: boolean
            - type: number
    updateVariables:
      title: Update Variables
      description: Contains information about the variables that are updated.
      properties:
        version:
          type: integer
          description: The variables schema version.
        variables:
          type: array
          description: The variables.
          items:
            $ref: "#/components/schemas/variable"
    variableCollection:
      allOf:
        - $ref: "#/components/schemas/baseCollection2"
        - type: object
          properties:
            name:
              type: string
              description: The name of the collection 'variables' in the context of the request.
            accept:
              type: string
              description: application/vnd.sas.workflow.variable
            items:
              $ref: "#/components/schemas/variable"
    updateMessage:
      title: Update Message
      description: Contains information about the message that is updated.
      properties:
        version:
          type: integer
          description: The version of the message schema.
        name:
          type: string
          description: The name of the message.
        variables:
          type: array
          description: The variables to set within the workflow process prior to the process continuing.
          items:
            $ref: "#/components/schemas/variable"
    modelProperty:
      title: Model Property
      description: Contains information about the model property.
      properties:
        name:
          type: string
          description: The name of the property.
        value:
          type: string
          description: The value for the property.
        type:
          type: string
          description: "The data type for the property. Valid values: string, decimal, integer, date, datetime"
    model:
      title: Model
      description: Contains information about the model.
      properties:
        createdBy:
          type: string
          description: The user that created the model.
        modifiedBy:
          type: string
          description: The user that last modified the model.
        creationTimeStamp:
          type: string
          description: The timestamp for when the model was created, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
          format: date-time
        modifiedTimeStamp:
          type: string
          description: The timestamp for when the model was last modified, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
          format: date-time
        id:
          type: string
          description: The unique identifier for the model.
        name:
          type: string
          description: The name of the model.
        description:
          type: string
          description: The description of the model.
        function:
          type: string
          description: "The function of the model. Valid values: analytical, classification, cluster, forecasting, prediction, Text analytics, transformation"
        algorithm:
          type: string
          description: The name of model algorithm.
        tool:
          type: string
          description: The name of the model tool.
        modeler:
          type: string
          description: This is the user that created or built the model.
        scoreCodeType:
          type: string
          description: The score code type for the model.
        trainTable:
          type: string
          description: The train data table.
        eventProbVar:
          type: string
          description: The name of the event probability variable.
        targetEvent:
          type: string
          description: The target event value.
        champion:
          type: boolean
          description: Indicates whether the project has champion model or not.
        role:
          type: string
          description: "The role of the model. Valid values: plain, champion, challenger"
        location:
          type: string
          description: The location of this model.
        targetLevel:
          type: string
          description: The level of the target.
        targetVariable:
          type: string
          description: The name of the target variable.
        projectId:
          type: string
          description: The unique identifier for the project that contains the model.
        projectName:
          type: string
          description: The name of the project that contains the model.
        projectVersionId:
          type: string
          description: The unique identifier for the project version that contains the model.
        projectVersionName:
          type: string
          description: The display name of the project version that contains the model
        folderId:
          type: string
          description: The unique identifier for the folder that contains the model
        repositoryId:
          type: string
          description: The unique identifier for the repository that contains the model.
        championStartTime:
          type: string
          description: The time at which the model was set as the project champion model.
        championEndTime:
          type: string
          description: The time at which the model was unset (cleared) as the project champion model.
        suggestedChampion:
          type: boolean
          description: Indicates the model that was suggested as the champion model at import time.
        retrainable:
          type: boolean
          description: Indicates whether the model can be retrained or not.
        immutable:
          type: boolean
          description: Indicates whether the model can be changed or not.
        modelVersionName:
          type: string
          description: The display name for a model version.
        dataUris:
          type: array
          description: The URI reference point to an analytic report. It can have zero or multiple URI references.
          items:
            $ref: "#/components/schemas/uriReference"
        properties:
          type: array
          items:
            $ref: "#/components/schemas/modelProperty"
          description: The properties for the model.
        inputVariables:
          type: array
          items:
            $ref: "#/components/schemas/variable"
          description: The input variables for the model.
        outputVariables:
          type: array
          items:
            $ref: "#/components/schemas/variable"
          description: The output variables for the model.
        version:
          type: integer
          description: The model representation version. The version is 2.
          default: 2
    reportResponse:
      title: Report Response
      description: Contains information about the report response.
      type: object
      properties:
        parentId:
          type: string
          description: The unique identifier of the parent project.
        modelIds:
          type: array
          description: The collection of model IDs.
          items:
            type: string
        comparedModels:
          type: array
          description: The collection of models being compared.
          items:
            $ref: "#/components/schemas/model"
        allInputVariables:
          type: array
          description: The collection of input variables.
          items:
            $ref: "#/components/schemas/variable"
        allOutputVariables:
          type: array
          description: The collection of output variables.
          items:
            $ref: "#/components/schemas/variable"
        allProperties:
          type: array
          description: The collection of model properties.
          items:
            $ref: "#/components/schemas/modelProperty"
        allFitStatFieldsForTrain:
          type: array
          description: The collection of fit statistics (fitstat) field keys for training.
          items:
            type: string
        allFitStatFieldsForTest:
          type: array
          description: The collection of fit statistics (fitstat) field keys for testing.
          items:
            type: string
        allFitStatFieldsForValidate:
          type: array
          description: The collection of fit statistics (fitstat) field keys for validation.
          items:
            type: string
    resourceCollection:
      title: Resource Collection
      description: Contains information about the resource collection.
      type: object
      properties:
        accept:
          type: string
          description: media type
        count:
          type: integer
          format: int64
          description: The total number of items.
        items:
          type: array
          items:
            type: object
            description: The item in concern.
        limit:
          type: integer
          format: int32
          description: The maximum number of items to return in this request.
        name:
          type: string
          description: item name
        start:
          type: integer
          format: int64
          description: The 0-based start index of a paginated request. Default is 0.
    multiVariatePredictionSummaryRequest:
      title: Multi-Variate Prediction Summary Request
      type: object
      properties:
        inputTable:
          type: string
          description: The name of input table.
        casServerName:
          type: string
          description: The name of CAS server.
        dataLibrary:
          type: string
          description: The name of data library.
        targetVariable:
          type: string
          description: The name of target variable.
    multiVariatePredictionSummaryResponse:
      title: Multi-Variate Prediction Summary Response
      type: array
      items:
        properties:
          predictedVariableName:
            type: string
            description: The name of predicted variable.
          distinctValue:
            type: string
            description: The distinct value.
          frequency:
            type: string
            description: The frequency of the distinct value.
          frequencyPercentage:
            type: string
            description: The frequency percentage of the distinct value.
    latestJob:
      title: Latest Performance Job
      description: Contains the metadata of the latest performance job.
      type: object
      properties:
        createdBy:
          type: string
          description: The user that created the job definition.
        creationTimeStamp:
          type: string
          description: The timestamp when the job definition was created.
          format: date-time
        dataLibrary:
          type: string
          description: The library the data is contained in.
        id:
          type: string
          description: The unique identifier for the job.
        jobExecutionRequired:
          type: boolean
          description: Whether execution of the job is required.
        jobReqId:
          type: string
          description: The unique identifier for the job execution.
        latestModelTable:
          type: string
          description: The latest table used in the job (project-level).
        latestProjectDate:
          type: string
          description: The timestamp when the latest performance job was run in the project.
          format: date-time
        latestProjectTable:
          type: string
          description: The latest table used in the job (model-level).
        links:
          type: array
          description: The links associated with the latest job.
          items:
            $ref: "#/components/schemas/link"
        model:
          type: string
          description: The name of the model associated with the performance job.
        modelId:
          type: string
          description: The unique identifier of the model associated with the performance job.
        modelVersionName:
          type: string
          description: The version name of the model associated with the performance job.
        modifiedBy:
          type: string
          description: The user that last modified the job definition.
        modifiedTimeStamp:
          type: string
          description: The timestamp when the job definition was last modified.
          format: date-time
        prefix:
          type: string
          description: The prefix of the data tables the performance job uses.
        projectId:
          type: string
          description: The unique identifier of the project associated with the performance job.
        projectVersion:
          type: string
          description: The version name of the project associated with the performance job.
        resultLibrary:
          type: string
          description: The name of the library where the result of the performance job is stored.
        startTime:
          type: string
          description: The timestamp at which the performance job started.
          format: date-time
        state:
          type: string
          description: The state of the performance job (for example, running or completed).
        stopTime:
          type: string
          description: The timestamp at which the performance job finished.
          format: date-time
        task:
          type: string
          description: The name of the performance task.
        taskId:
          type: string
          description: The unique identifier of the performance task.
        version:
          type: number
          description: The version of the performance job.
    link:
      title: Link
      type: object
      description: A link to a related operation or resource.
      required:
        - rel
      properties:
        method:
          type: string
          description: The HTTP method for the link.
        rel:
          type: string
          description: The relationship of the link to the resource.
        uri:
          type: string
          description: The relative URI for the link.
        href:
          type: string
          description: The URL for the link.
        title:
          type: string
          description: The title for the link.
        type:
          type: string
          description: The media type or link type for the link.
        itemType:
          type: string
          description: If this is a link to a container, `itemType` is the media type or link type for the items in the container.
        responseType:
          type: string
          description: The media type or link type of the response body for a `PUT`, `POST`, or `PATCH` operation.
        responseItemType:
          type: string
          description: The media type or link type of the items in the response body for a `PUT`, `POST`, or `PATCH` operation.
    healthMetricsCollection:
      title: Performance Metrics Collection
      description: A collection of performance health metrics for a model.
      properties:
        items:
          $ref: "#/components/schemas/healthMetrics"
        kpisAvailable:
          type: boolean
          description: Whether there are KPIs available for the model.
        rulesAvailable:
          type: boolean
          description: Whether there are alert rules available for the model.
    healthMetrics:
      title: Performance Health Metrics
      description: Contains the performance health metrics for a model.
      properties:
        category:
          type: string
          description: The category of the metric.
        metric:
          type: string
          description: The name of the metric.
        value:
          type: string
          description: The value of the metric with respect to the training data.
        success:
          type: boolean
          description: Whether the model is passing or failing this metric.
        alertRuleName:
          type: string
          description: The name of the KPI alert rule.
        alertCondition:
          type: string
          description: The condition in which alert is raised (for example, less than or greater than).
        alertThreshold:
          type: string
          description: The alert threshold associated with the metric.
    publishedModel:
      title: Published Model
      description: Contains information about a published model.
      properties:
        creationTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when the job was created, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
        createdBy:
          type: string
          description: The user who created the job.
        modifiedTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when the job was last modified, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
        modifiedBy:
          type: string
          description: The user who most recently modified the job.
        version:
          type: integer
          format: int32
          description: The version number for this media type's schema.
        id:
          type: string
          description: The unique identifier for the deployment.
        name:
          type: string
          description: The name of the model.
        publishName:
          type: string
          description: The name of the deployment.
        publishType:
          type: string
          description: The type of deployment.
        verified:
          type: boolean
          description: Indicates whether the model is verified.
        principalId:
          type: string
          description: The unique identifier for the model that was published.
        destinationName:
          type: string
          description: The name of the destination published to.
        destination:
          type: object
          properties:
            creationTimeStamp:
              type: string
              format: date-time
              description: The timestamp for when the job was created, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
            modifiedTimeStamp:
              type: string
              format: date-time
              description: The timestamp for when the job was last modified, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
            version:
              type: integer
              format: int32
              description: The version number for this media type's schema.
        codeType:
          type: string
          description: The score code type for the model.
        analyticStoreUri:
          type: array
          items:
            type: string
          description: A list of CAS table URIs for each analytic store.
        sourceUri:
          type: string
          description: The URI of the source reference.
        projectId:
          type: string
          description: The unique identifier for the project associated with the published model.
        projectVersionId:
          type: string
          description: The version number of the project associated with the published model.
        modelId:
          type: string
          description: The unique identifier for the model that was published.
        modelVersionId:
          type: string
          description: The version number of the published model.
        publishLevel:
          type: string
          description: The level the model was published.
        state:
          type: string
          description: The state of the published model (pending, running, completed, failed).
        properties:
          type: object
          description: The properties of the published model.
        errorResponse:
          type: object
          description: The error responses when publishing the model.
        links:
          type: array
          description: The links associated with the published model.
          items:
            $ref: "#/components/schemas/link"
    publishRequestManagement:
      title: Publishing Model Request
      description: Contains information about a publishing model request.
      type: object
      properties:
        description:
          type: string
          description: The description for the published model.
        modelContents:
          type: array
          description: A list of models.
          items:
            $ref: "#/components/schemas/publishContentManagement"
        name:
          type: string
          description: The published name of a model.
        note:
          type: string
          description: The description for the published model.
        destinationName:
          type: string
          description: The name of the publishing destination.
        properties:
          type: object
          description: >
            Additional properties for the published model.


            Here is a list of the additional properties that are supported:


            - gitRemotePath: Indicates the directory path within the Git repository to publish the selected items to.

            - AMLWorkspaceName: Indicates the workspace in the Azure Machine Learning environment to publish the selected items to.
              - containerRegistryName: Indicates the name of the container registry for a local Azure container destination.
        skipVersioning:
          type: boolean
          description: >
            Indicates whether the model version will be incremented when a model is published.

            This property is supported for 2025.03 and later releases.
        tags:
          type: array
          description: A list of tags associated with the model.
          items:
            type: string
        verified:
          type: boolean
          example: false
          description: Indicates whether the model is verified.
        version:
          type: integer
          description: The API representation version.
          default: 1
      required:
        - destinationName
        - modelContents
        - name
    publishContentManagement:
      title: Publishing Model Content
      description: Contains information about publishing model content.
      type: object
      properties:
        analyticStoreUri:
          type: array
          items:
            type: string
          description: The URI that points to the analytic store in the CAS library.
        code:
          type: string
          description: The model score code.
        codeMediaType:
          type: string
          description: The code media type indicates the format of the code when it is downloaded.
        codeType:
          type: string
          description: The code type can be `datastep` or `ds2`.
        codeURI:
          type: string
          description: The URI for the model score code that points to the score code.
        createdBy:
          type: string
          description: The user who created the object.
        creationTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when the object was created, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
        format:
          type: string
          description: The format used to determine how the values of a variable should be written or displayed.
        formatURI:
          type: string
          description: The URI for the variable format.
        modelName:
          type: string
          description: The name of the model.
        modelID:
          type: string
          description: The model ID that can be used by the client to find their published model.
        modifiedBy:
          type: string
          description: The user who most recently modified the object.
        modifiedTimeStamp:
          type: string
          format: date-time
          description: The timestamp for when the object was last modified, in the format of `YYYY-MM-DDThh:mm:ss.sssZ`.
        principalID:
          description: The principal ID.
          type: string
        projectID:
          description: The project ID.
          type: string
        publishLevel:
          description: The publish level.
          type: string
        publishNotes:
          description: The publishing notes.
          type: string
        sourceURI:
          type: string
          description: This URI represents where the model came from.
        variableXml:
          description: The variables in XML format.
          type: string
        version:
          type: integer
          description: The API representation version.
          default: 1
      required:
        - modelName
        - sourceURI
    baseCollection2:
      title: Base Collection
      description: This is a base schema used to define paginated collections of resources. This base schema is extended by other schemas in APIs by adding an 'items' array property. These extensions define the application/vnd.sas.collection media type (version 2)
      properties:
        name:
          type: string
          description: The name of the collection.
        start:
          type: integer
          description: The zero-based index of the first item in the collection.
          format: int64
        limit:
          type: integer
          description: The number of items that were requested for the collection.
        count:
          type: integer
          description: If populated indicates the number of items in the collection.
          format: int64
        accept:
          type: string
          description: A space-delimited list of media types from which an `Accept` header may be constructed.
        links:
          type: array
          description: The links that apply to the collection.
          items:
            $ref: "#/components/schemas/link"
        version:
          type: integer
          description: The version number of the collection representation. This representation is version 2.
    collection2:
      title: Collection
      description: A collection of zero or more resource representations. Collections are often paginated and the items array contains one page of representations.
      required:
        - items
      x-sas-media-type:
        name: application/vnd.sas.collection
        version: 2
      allOf:
        - $ref: "#/components/schemas/baseCollection2"
        - type: object
          properties:
            items:
              type: array
              description: Array consisting API resource representations, normally a page worth.
    api:
      title: API
      description: The list of links to top-level resources and operations available from the root of the API.
      x-sas-media-type:
        name: application/vnd.sas.api
        version: 1
      required:
        - version
        - links
      properties:
        version:
          type: integer
          description: The version number of the API representation. This is version 1.
          minimum: 1
        links:
          description: The API's top-level links.
          type: array
          items:
            $ref: "#/components/schemas/link"
    error2:
      title: Error
      type: object
      description: The representation of an error.
      x-sas-media-type:
        name: application/vnd.sas.error
        version: 2
      required:
        - httpStatusCode
        - version
      properties:
        message:
          type: string
          description: The message for the error.
        id:
          type: string
          description: The string ID for the error.
        errorCode:
          type: integer
          description: The numeric ID for the error.
        httpStatusCode:
          type: integer
          description: The HTTP status code for the error.
        details:
          type: array
          description: Messages that provide additional details about the cause of the error.
          items:
            type: string
        remediation:
          type: string
          description: A message that describes how to resolve the error.
        errors:
          type: array
          description: Any additional errors that occurred.
          items:
            $ref: "#/components/schemas/error2"
        links:
          type: array
          description: The links that apply to the error.
          items:
            $ref: "#/components/schemas/link"
        version:
          type: integer
          description: The version number of the error representation. This representation is version 2.
    mappedCode:
      title: Mapped Code
      description: Executable code generated by a score object using a score definition and input data. This represents application/vnd.sas.score.mapped.code media type (version 1).
      required:
        - code
        - codeType
        - outputTableName
        - outputLibraryName
      properties:
        code:
          type: string
          description: The executable code generated by a score object.
        codeType:
          type: string
          format: media-type
          description: The type of code.
        outputTableName:
          type: string
          description: The name of the table that is generated when the code is executed.
        outputLibraryName:
          type: string
          description: The name of the library where the table is generated when the code is executed.
        version:
          type: integer
          description: This media type's schema version number. This representation is version 1.
      example:
        code: /* DS2 code of an object, which generates an XYZ output table */
        codeType: text/vnd.sas.source.ds2
        outputTableName: XYZ
        outputLibraryName: HPS
    scoreCodeGenerationRequest:
      title: Score Code Generation Request
      description: Request containing hints to generate mapped code using the Scoring Definition by Score Object.
      required:
        - scoreDefinitionId
      properties:
        scoreDefinitionId:
          type: string
          description: The score definition ID that is used for generating mapped code.
        hints:
          type: object
          description: Hints for generating mapped code. The mapped code request is forwarded to the score object of the score definition. The score object should understand these hints.
          additionalProperties:
            type: string
        version:
          type: integer
          readOnly: true
          description: This media type's schema version number. This representation is version 2.
  examples:
    workflowObjectProcessRequestNoVars:
      description: A workflow object process request with the variables omitted.
      value:
        association:
          solutionObjectType: MM_Project
          solutionObjectName: sample_project
          solutionObjectId: ab4ee493-0fe6-4348-8099-3a56ff5affd9
          solutionObjectUri: /modelRepository/projects/ab4ee493-0fe6-4348-8099-3a56ff5affd9
          solutionObjectMediaType: application/vnd.sas.models.projects+json
    getLatestJob:
      description: The response for retrieving the latest performance job.
      value:
        createdBy": sasdemo
        creationTimeStamp": 2024-11-12T02:55:12.686059Z
        dataLibrary": Public
        id": 8aa07cbf-2f20-4aed-857f-1a36064706d0
        jobExecutionRequired": true
        jobReqId": 8e703210-eda6-4dfd-8314-7e73eb0be750
        latestModelTable": HMEQPERF_4_Q4
        latestProjectDate": 2024-11-12T02:56:02.585Z
        latestProjectTable": HMEQPERF_4_Q4
        links:
          - method: GET
            rel: self
            href: /modelManagement/performanceTasks/ab54b494-bdf5-420d-87f7-2810844851cc/performanceJobs/8aa07cbf-2f20-4aed-857f-1a36064706d0
            uri: /modelManagement/performanceTasks/ab54b494-bdf5-420d-87f7-2810844851cc/performanceJobs/8aa07cbf-2f20-4aed-857f-1a36064706d0
        model": GLM (Pipeline 1)
        modelId": 2ccb17b2-7b3c-41e6-98c1-9b7fba1a44e4
        modelVersionName": "1.1"
        modifiedBy": sasdemo
        modifiedTimeStamp": 2024-11-15T17:24:48.313694Z
        prefix": hmeqperf
        projectId": 01fee6ba-dc92-4afb-90e1-be98b217d72f
        projectVersion": Version 1
        resultLibrary": ModelPerformanceData
        startTime": 2024-11-12T02:56:05.906Z
        state": completed
        stopTime": 2024-11-12T02:56:57.875Z
        task": Project interval bias_Performance
        taskId": ab54b494-bdf5-420d-87f7-2810844851cc
        version": 2
    getMappedCodeResponse:
      description: The generated mapped code, type, table and library information.
      value:
        version: 1
        code: /* Generated Mapped Code */
        codeType: datastep
        outputTableName: Test_2_QS_Reg1_v12_0___latest_2023_08_25_14_22_16_output
        outputLibraryName: Public
    getProcessVariable:
      description: The details of the variable within a workflow process.
      value:
        scope: local
        type: string
        name: Champion_ID
        localizedName: Champion_ID
        value: champion id
        version: 1
        links:
          - method: GET
            rel: self
            href: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
            uri: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
            type: application/vnd.sas.workflow.variable
          - method: PUT
            rel: update
            href: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
            uri: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
            responseType: application/vnd.sas.workflow.variable
    getProcessVariables:
      description: The details of the variables within a workflow process.
      value:
        name: variables
        accept: application/vnd.sas.workflow.variable
        items:
          - scope: local
            type: string
            name: Champion_ID
            localizedName: Champion_ID
            value: champion id
            version: 1
            links:
              - method: GET
                rel: self
                href: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
                uri: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
                type: application/vnd.sas.workflow.variable
              - method: PUT
                rel: update
                href: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
                uri: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
                responseType: application/vnd.sas.workflow.variable
          - scope: local
            type: string
            name: modelProjectId
            localizedName: modelProjectId
            value: a16e2641-cdd9-4e36-8702-b8892e7a3e85
            version: 1
            links:
              - method: GET
                rel: self
                href: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/modelProjectId
                uri: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/modelProjectId
                type: application/vnd.sas.workflow.variable
              - method: PUT
                rel: update
                href: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/modelProjectId
                uri: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/modelProjectId
                responseType: application/vnd.sas.workflow.variable
    getHealthMetrics:
      description: The response for retrieving the model performance health metrics.
      value:
        items:
          - category: ACCURACY
            metric: _RSquared_
            value: "0.0249159854"
            success: true
            alertRuleName: R-squared Greater than 0.45678
            alertCondition: greaterThan
            alertThreshold: 0.45678
          - category: FAIRNESS
            metric: PredictiveParity
            value: "0.4292135613"
            success: true
            alertRuleName: "Predictive parity: REASON Less than 0.11"
            alertCondition: lessThan
            alertThreshold: 0.11
            kpiVariable: REASON
            kpiVariableRole: SENSITIVE
          - category: FAIRNESS
            metric: PredictiveParity
            value: "1.3017658658"
            success: false
            alertRuleName: "Predictive parity: JOB Greater than 0.6688"
            alertCondition: greaterThan
            alertThreshold: 0.6688
            kpiVariable: JOB
            kpiVariableRole: SENSITIVE
          - category: MODELDRIFT
            metric: devIndex
            value: "0"
            success: true
            alertRuleName: "Input variable stability PSI: REASON Greater than 0.2"
            alertCondition: greaterThan
            alertThreshold: 0.2
            kpiVariable: REASON
            kpiVariableRole: INPUT
        kpisAvailable: true
        rulesAvailable: true
    workflowObjectProcessResponse:
      description: The details of a workflow object process.
      value:
        creationTimeStamp: 2021-05-06T20:21:04.420Z
        createdBy: sasdemo
        id: WFcd404a82-af5b-4835-9672-9730470a6be8
        name: wf_demo
        state: In Progress
        links:
          - method: GET
            rel: self
            href: /modelManagement/workflowProcesses/WFcd404a82-af5b-4835-9672-9730470a6be8
            uri: /modelManagement/workflowProcesses/WFcd404a82-af5b-4835-9672-9730470a6be8
          - method: GET
            rel: alternate
            href: /workflowHistory/processes/WFcd404a82-af5b-4835-9672-9730470a6be8
            uri: /workflowHistory/processes/WFcd404a82-af5b-4835-9672-9730470a6be8
          - method: GET
            rel: process
            href: /workflow/processes/WFcd404a82-af5b-4835-9672-9730470a6be8
            uri: /workflow/processes/WFcd404a82-af5b-4835-9672-9730470a6be8
        associations:
          - id: f2e6b321-f2a3-43b0-b39b-89414c51f789
            processId: WFcd404a82-af5b-4835-9672-9730470a6be8
            processName: wf_demo
            solutionObjectType: MM_Project
            solutionObjectName: sample_project
            solutionObjectId: ab4ee493-0fe6-4348-8099-3a56ff5affd9
            solutionObjectUri: /modelRepository/projects/ab4ee493-0fe6-4348-8099-3a56ff5affd9
            solutionObjectMediaType: application/vnd.sas.models.projects+json
            creationTimeStamp: 2021-05-06T20:21:04.420Z
            createdBy: sasdemo
            links:
              - method: GET
                rel: self
                href: /modelManagement/workflowAssociations/f2e6b321-f2a3-43b0-b39b-89414c51f789
                uri: /modelManagement/workflowAssociations/f2e6b321-f2a3-43b0-b39b-89414c51f789
              - method: GET
                rel: process
                href: /modelManagement/workflowProcesses/WFcd404a82-af5b-4835-9672-9730470a6be8
                uri: /modelManagement/workflowProcesses/WFcd404a82-af5b-4835-9672-9730470a6be8
    conflict:
      description: Conflict.
      value:
        httpStatusCode: 409
        version: 2
    notAcceptable:
      description: Not acceptable.
      value:
        httpStatusCode: 406
        version: 2
    receivedMessageRequest:
      description: The message to send.
      value:
        name: variables
        version: 1
        variables:
          - scope: local
            type: string
            name: Champion_ID
            localizedName: Champion_ID
            value: champion id
            version: 1
            links:
              - method: GET
                rel: self
                href: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
                uri: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
                type: application/vnd.sas.workflow.variable
              - method: PUT
                rel: update
                href: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
                uri: /modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID
                responseType: application/vnd.sas.workflow.variable
    workflowObjectProcessRequestWithVars:
      description: A workflow object process request that contains variables.
      value:
        variables:
          - scope: local
            type: string
            name: char1
            value: a
            version: 1
            description: test string
        association:
          solutionObjectType: MM_Project
          solutionObjectName: sample_project
          solutionObjectId: ab4ee493-0fe6-4348-8099-3a56ff5affd9
          solutionObjectUri: /modelRepository/projects/ab4ee493-0fe6-4348-8099-3a56ff5affd9
          solutionObjectMediaType: application/vnd.sas.models.projects+json
    getMappedCodeRequest:
      description: The request to generate mapped code.
      value:
        scoreDefinitionId: 1c9e4704-d153-4b76-b0fb-cc11e99562aa
    publishModelRequest:
      description: The request to publish a model.
      value:
        creationTimeStamp: 0001-01-01T00:00:00Z
        modifiedTimeStamp: 0001-01-01T00:00:00Z
        name: QS_Reg1_Nominal
        modelContents:
          - creationTimeStamp: 0001-01-01T00:00:00Z
            modifiedTimeStamp: 0001-01-01T00:00:00Z
            modelName: QS_Reg1_Nominal
            principalID: 268742ce-c433-4cd2-b543-7f2a2754b29b
            codeType: ds2
            code: "/* Algorithm: Logistic Regression */ package \"QS_Reg1_Nominal\" / overwrite=yes; dcl double AGE; dcl double INCOME; dcl double BALANCE; dcl double EXPENSE; dcl double RISK; dcl double P_JOBTech having label 'Predicted: JOB=Tech'; dcl double P_JOBClerical having label 'Predicted: JOB=Clerical'; dcl nchar(7) I_JOB having label 'Into: JOB'; dcl double EM_PROBABILITY; method logistic_scoring(); dcl double _LINP1_, _LINP2_, _SUMP_; dcl double _BETA1_[5] = (1.23, -0.014, 0.007, 0.021, -0.0035); dcl double _BETA2_[5] = (0.95, 0.006, -0.018, 0.013, 0.0021); dcl double _X_[5]; _X_ := (AGE, INCOME, BALANCE, EXPENSE, RISK); _LINP1_ = sum(of (_X_ * _BETA1_)); _LINP2_ = sum(of (_X_ * _BETA2_)); _SUMP_ = exp(_LINP1_) + exp(_LINP2_); P_JOBTech = exp(_LINP1_) / _SUMP_; P_JOBClerical = exp(_LINP2_) / _SUMP_; EM_PROBABILITY = max(P_JOBTech, P_JOBClerical); end;"
            sourceURI: /modelRepository/models/268742ce-c433-4cd2-b543-7f2a2754b29b
            modelVersionID: "1.0"
            projectID: ca454df2-4753-41d2-8330-cab53ae11287
            projectVersionID: 7c8ca99c-2ff0-47e1-9574-693a036b9879
            modelID: 268742ce-c433-4cd2-b543-7f2a2754b29b
            publishLevel: model
            variableXML: <?xml version="1.0" encoding="UTF-8"?><Score><TargetList></TargetList><Producer><Name>SAS Model Manager</Name><Version>15.1</Version></Producer><Input><Variable><Name>"BAD"</Name><Type>numeric</Type></Variable></Input><Input><Variable><Name>"CLAGE"</Name><Type>numeric</Type></Variable></Input><Input><Variable><Name>"CLNO"</Name><Type>numeric</Type></Variable></Input><Input><Variable><Name>"DEBTINC"</Name><Type>numeric</Type></Variable></Input><Input><Variable><Name>"DELINQ"</Name><Type>numeric</Type></Variable></Input><Input><Variable><Name>"DEROG"</Name><Type>numeric</Type></Variable></Input><Input><Variable><Name>"LOAN"</Name><Type>numeric</Type></Variable></Input><Input><Variable><Name>"MORTDUE"</Name><Type>numeric</Type></Variable></Input><Input><Variable><Name>"NINQ"</Name><Type>numeric</Type></Variable></Input><Input><Variable><Name>"REASON"</Name><Type>character</Type></Variable></Input><Input><Variable><Name>"VALUE"</Name><Type>numeric</Type></Variable></Input><Input><Variable><Name>"YOJ"</Name><Type>numeric</Type></Variable></Input><Output><Variable><Name>"EM_CLASSIFICATION"</Name><Type>character</Type></Variable></Output><Output><Variable><Name>"EM_EVENTPROBABILITY"</Name><Type>numeric</Type></Variable></Output><Output><Variable><Name>"EM_PROBABILITY"</Name><Type>numeric</Type></Variable></Output><Output><Variable><Name>"I_JOB"</Name><Type>character</Type></Variable></Output><Output><Variable><Name>"P_JOBMgr"</Name><Type>numeric</Type></Variable></Output><Output><Variable><Name>"P_JOBOffice"</Name><Type>numeric</Type></Variable></Output><Output><Variable><Name>"P_JOBOther"</Name><Type>numeric</Type></Variable></Output><Output><Variable><Name>"P_JOBProfExe"</Name><Type>numeric</Type></Variable></Output><Output><Variable><Name>"P_JOBSales"</Name><Type>numeric</Type></Variable></Output><Output><Variable><Name>"P_JOBSelf"</Name><Type>numeric</Type></Variable></Output></Score>
        destinationName: maslocal
        tags:
          - tag1
          - tag2
        omitDefaultTags: false
    notFound:
      description: Not found.
      value:
        httpStatusCode: 404
        version: 2
    publishModelResponse:
      description: The information about the published model.
      value:
        - creationTimeStamp: 2025-04-25T13:53:45.908835Z
        - createdBy: sasdemo
        - modifiedTimeStamp: 2025-04-25T13:53:45.908836Z
        - modifiedBy: sasdemo
        - version: 2
        - id: ed3d0aea-233a-44a5-97ae-8153a926bf17
        - name: QS_Reg1_Nominal
        - publishName: QS_Reg1_Nominal
        - publishType: container
        - verified: false
        - principalId: 78286c1c-8ef3-4bfa-93cd-2a4989622ef8
        - destinationName: scrAzure
        - destination:
            - creationTimeStamp: 0001-01-01T00:00:00Z
            - modifiedTimeStamp: 0001-01-01T00:00:00Z
            - version: 2
        - codeType: ds1
        - analyticStoreUri: []
        - sourceUri: /modelRepository/models/78286c1c-8ef3-4bfa-93cd-2a4989622ef8/modelVersions/afa96d6a-c4aa-4b3e-be77-11f6163dbe53
        - projectId: 39f8a892-76ba-4963-ae50-bde0eaf6e4ef
        - projectVersionId: c917565a-02d3-4704-abdd-acecb4bded6b
        - modelId: 78286c1c-8ef3-4bfa-93cd-2a4989622ef8
        - modelVersionId: "1.0"
        - publishLevel: model
        - state: running
        - properties: {}
        - errorResponse: {}
        - links:
            - method: GET
              rel: up
              href: /modelPublish/models
              uri: /modelPublish/models
              type: application/vnd.sas.collection
            - method: GET
              rel: self
              href: /modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17
              uri: /modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17
              type: application/vnd.sas.models.publishing.publish
            - method: DELETE
              rel: delete
              href: /modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17
              uri: /modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17
            - method: PUT
              rel: update
              href: /modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17
              uri: /modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17
              type: application/vnd.sas.models.publishing.publish
            - method: GET
              rel: publishingLog
              href: /modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17/log
              uri: /modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17/log
              type: application/json
    badRequest:
      description: Bad request.
      value:
        httpStatusCode: 400
        version: 2
