Update variables within a subprocess
patch/workflow/processes/{processId}/subprocesses/{subprocessId}/variables
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. Authorization: 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.
1{2 "name": "variables",3 "accept": "application/vnd.sas.workflow.variable",4 "items": [5 {6 "scope": "local",7 "type": "string",8 "name": "Champion_ID",9 "localizedName": "Champion_ID",10 "value": "champion id",11 "version": 1,12 "links": [13 {14 "method": "GET",15 "rel": "self",16 "href": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID",17 "uri": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID",18 "type": "application/vnd.sas.workflow.variable"19 },20 {21 "method": "PUT",22 "rel": "update",23 "href": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID",24 "uri": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/Champion_ID",25 "responseType": "application/vnd.sas.workflow.variable"26 }27 ]28 },29 {30 "scope": "local",31 "type": "string",32 "name": "modelProjectId",33 "localizedName": "modelProjectId",34 "value": "a16e2641-cdd9-4e36-8702-b8892e7a3e85",35 "version": 1,36 "links": [37 {38 "method": "GET",39 "rel": "self",40 "href": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/modelProjectId",41 "uri": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/modelProjectId",42 "type": "application/vnd.sas.workflow.variable"43 },44 {45 "method": "PUT",46 "rel": "update",47 "href": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/modelProjectId",48 "uri": "/modelManagement/workflow/processes/WFaeec3c84-0064-4e1f-bae5-88801ba33813/variables/modelProjectId",49 "responseType": "application/vnd.sas.workflow.variable"50 }51 ]52 }53 ]54}
Name | Type | Required | Description |
---|---|---|---|
processId | string<object-id> | true | The workflow process ID. |
subprocessId | string<object-id> | true | The workflow subprocess ID. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The variables were 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 |