Update variable within a subprocess
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. 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 this information.
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}
Name | Type | Required | Description |
---|---|---|---|
processId | string<object-id> | true | The workflow process ID. |
subprocessId | string<object-id> | true | The workflow subprocess ID. |
variableName | string | true | The variable name. |
The variable content to be updated.
Contains information about the variable that is updated.
Name | Type | Required | Description |
---|---|---|---|
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. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The variable was updated. | Schema | |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | No process or subprocess exists with the specified ID or variable name. | Schema | |
412 | Precondition Failed | The `If-Match` request header did not match the resource's entity tag (ETag). | Schema | |
428 | Precondition Required | The request headers did not include a `If-Match` or `If-Unmodified-Since` precondition. | Schema |