The representation of a publish request.
Publish models
Publish a model to a CAS, Hadoop, Teradata, SAS Micro Analytic Service, or a container publishing destination. For more information, see Publishing Models in SAS Model Manager: User's Guide
1{2 "creationTimeStamp": "2025-04-25T13:53:45.908835Z",3 "createdBy": "sasdemo",4 "modifiedTimeStamp": "2025-04-25T13:53:45.908836Z",5 "modifiedBy": "sasdemo",6 "version": 2,7 "id": "ed3d0aea-233a-44a5-97ae-8153a926bf17",8 "name": "QS_Reg1_Nominal",9 "publishName": "QS_Reg1_Nominal",10 "publishType": "container",11 "verified": false,12 "principalId": "78286c1c-8ef3-4bfa-93cd-2a4989622ef8",13 "destinationName": "scrAzure",14 "destination": {15 "creationTimeStamp": "0001-01-01T00:00:00Z",16 "modifiedTimeStamp": "0001-01-01T00:00:00Z",17 "version": 218 },19 "codeType": "ds1",20 "analyticStoreUri": [],21 "sourceUri": "/modelRepository/models/78286c1c-8ef3-4bfa-93cd-2a4989622ef8/modelVersions/afa96d6a-c4aa-4b3e-be77-11f6163dbe53",22 "projectId": "39f8a892-76ba-4963-ae50-bde0eaf6e4ef",23 "projectVersionId": "c917565a-02d3-4704-abdd-acecb4bded6b",24 "modelId": "78286c1c-8ef3-4bfa-93cd-2a4989622ef8",25 "modelVersionId": "1.0",26 "publishLevel": "model",27 "state": "running",28 "properties": {},29 "errorResponse": {},30 "links": [31 {32 "method": "GET",33 "rel": "up",34 "href": "/modelPublish/models",35 "uri": "/modelPublish/models",36 "type": "application/vnd.sas.collection"37 },38 {39 "method": "GET",40 "rel": "self",41 "href": "/modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17",42 "uri": "/modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17",43 "type": "application/vnd.sas.models.publishing.publish"44 },45 {46 "method": "DELETE",47 "rel": "delete",48 "href": "/modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17",49 "uri": "/modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17"50 },51 {52 "method": "PUT",53 "rel": "update",54 "href": "/modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17",55 "uri": "/modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17",56 "type": "application/vnd.sas.models.publishing.publish"57 },58 {59 "method": "GET",60 "rel": "publishingLog",61 "href": "/modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17/log",62 "uri": "/modelPublish/models/ed3d0aea-233a-44a5-97ae-8153a926bf17/log",63 "type": "application/json"64 }65 ]66}| Name | Type | Required | Description |
|---|---|---|---|
force | boolean | false | Indicates to publish models and replace previously published models with the same name. Default: false |
reloadModelTable | boolean | false | Indicates whether to reload the model table for the destination. Default: false |
Contains information about a publishing model request.
| Name | Type | Required | Description |
|---|---|---|---|
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:
|
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 |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 201 | Created | The models were published successfully. | Schema | |
| 400 | Bad Request | 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". | Schema | |
| 404 | Not Found | No model score code exists at the requested path. | Schema |