Publish models

post/models

Publish one or more models to a CAS server, Hadoop, SAS Micro Analytic Service, or Teradata, as well as Azure Machine Learning (AML), and container destinations such as Amazon Web Services (AWS), Azure, Google Cloud Platform (GCP), and Private Docker.

Request Samples

1

Response Samples

1{
2 "name": "string",
3 "start": -9223372036854776000,
4 "limit": 0,
5 "count": -9223372036854776000,
6 "accept": "string",
7 "links": [
8 {
9 "method": "string",
10 "rel": "string",
11 "uri": "string",
12 "href": "string",
13 "title": "string",
14 "type": "string",
15 "itemType": "string",
16 "responseType": "string",
17 "responseItemType": "string"
18 }
19 ],
20 "version": 0
21}

Query Parameters

NameTypeRequiredDescription
promoteModelTable
boolean
false

Indicates whether to promote the destination table.

reuseExistingModules
boolean
false

Reuse the published modules.

Header Parameters

NameTypeRequiredDescription
Authorization
string
true

Authorization

Request Body

pReq

Contains information about a publishing model request.

NameTypeRequiredDescription
description
string
false

The description for the published model.

modelContents
array [Publishing Model Content]
true

A list of models.

name
string
true

The published name of a model.

note
string
false

The description for the published model.

destinationName
string
true

The name of the publishing destination.

properties
object
false

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
boolean
false

Indicates whether the model version will be incremented when a model is published. This property is supported for 2025.03 and later releases.

tags
array [string]
false

A list of tags associated with the model.

verified
boolean
false

Indicates whether the model is verified.

version
integer
false

The API representation version.

Default:
1

Responses

StatusMeaningDescription
201Created

The models were published.

HeadersSchema
400Bad Request

The request was invalid.

Schema