Update variable within a process

put/workflow/processes/{processId}/variables/{variableName}
Internal-Use Only

Updates the variable with the specified name within the process associated with SAS Model Manager. Users are restricted to updating the variable with a name of modelProjectId. Authorization: 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.

Request Samples

1

Response Samples

1{
2 "scope": "local",
3 "type": "string",
4 "name": "Champion_ID",
5 "localizedName": "Champion_ID",
6 "value": "champion id",
7 "version": 1,
8 "links": [
9 {
10 "method": "GET",
11 "rel": "self",
12 "href": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID",
13 "uri": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID",
14 "type": "application/vnd.sas.workflow.variable"
15 },
16 {
17 "method": "PUT",
18 "rel": "update",
19 "href": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID",
20 "uri": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID",
21 "responseType": "application/vnd.sas.workflow.variable"
22 }
23 ]
24}

Path Parameters

NameTypeRequiredDescription
processId
string<object-id>
true

The workflow process ID.

variableName
string
true

The variable name.

Header Parameters

NameTypeRequiredDescription
Etag
string
true

If-Match

Request Body

The variable to set on the process.

Contains information about the variable that is updated.

NameTypeRequiredDescription
version
integer
false

The variable schema version.

scope
string
false

The scope of the variable. Valid values: local, inherited]

type
string
false

The type of the variable. Valid values: string, number, dateTime, boolean

name
string
false

The variable name.

value
oneOfstringbooleannumber
false

The variable value.

Responses

StatusMeaningDescription
200OKThe variable was updated.Schema
400Bad RequestThe request was invalid.Schema
404Not FoundNo process exists with the specified ID or variable name.Schema
412Precondition FailedThe `If-Match` request header did not match the resource's entity tag (ETag).Schema
428Precondition RequiredThe request headers did not include a `If-Match` or `If-Unmodified-Since` precondition.Schema