Functions
Update a function
Updates the function with the provided content.
put/functions/{functionId}
Request
- Base URL: https://example.com/businessRules
- URL: https://example.com/businessRules/functions/{functionId}
- Auth: none declared. Required headers: If-Match
Path parameters
functionIdstring required
The ID of the function to update.
Headers
If-Matchstring required
Example:"kt144a1d"
The entity tag from the last time the function was retrieved.
Request body
Example request
{
"creationTimeStamp": "2020-08-04T17:46:19.097Z",
"modifiedTimeStamp": "2020-08-04T17:47:28.848Z",
"createdBy": "brmdev",
"modifiedBy": "brmdev",
"version": 1,
"id": "26674236-bc80-41de-954d-d37b1a19d98d",
"categoryId": "85329ae9-52df-444f-8e18-bffb1a523da7",
"name": "customadd2",
"code": "method customAdd2(double a, double b) returns double; return a + b; end;",
"returnType": "double",
"signature": [
{
"type": "double",
"name": "a",
"inOut": false,
"nameQuoted": false
},
{
"type": "double",
"name": "b",
"inOut": false,
"nameQuoted": false
}
],
"links": [
{
"method": "GET",
"rel": "self",
"href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
"uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
"type": "application/vnd.sas.business.rule.function"
},
{
"method": "PUT",
"rel": "update",
"href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
"uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
"type": "application/vnd.sas.business.rule.function"
},
{
"method": "DELETE",
"rel": "delete",
"href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
"uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d"
},
{
"method": "GET",
"rel": "up",
"href": "/businessRules/functions",
"uri": "/businessRules/functions",
"type": "application/vnd.sas.collection",
"itemType": "application/vnd.sas.business.rule.function"
},
{
"method": "GET",
"rel": "category",
"href": "/businessRules/functionCategories/85329ae9-52df-444f-8e18-bffb1a523da7",
"uri": "/businessRules/functionCategories/85329ae9-52df-444f-8e18-bffb1a523da7",
"type": "application/vnd.sas.business.rule.function.category"
}
],
"hidden": false,
"nameQuoted": false
}Response
The function was updated.
Example response
{
"creationTimeStamp": "2020-08-04T17:46:19.097Z",
"modifiedTimeStamp": "2020-08-04T17:47:28.848Z",
"createdBy": "brmdev",
"modifiedBy": "brmdev",
"version": 1,
"id": "26674236-bc80-41de-954d-d37b1a19d98d",
"categoryId": "85329ae9-52df-444f-8e18-bffb1a523da7",
"name": "customadd2",
"code": "method customAdd2(double a, double b) returns double; return a + b; end;",
"returnType": "double",
"signature": [
{
"type": "double",
"name": "a",
"inOut": false,
"nameQuoted": false
},
{
"type": "double",
"name": "b",
"inOut": false,
"nameQuoted": false
}
],
"links": [
{
"method": "GET",
"rel": "self",
"href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
"uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
"type": "application/vnd.sas.business.rule.function"
},
{
"method": "PUT",
"rel": "update",
"href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
"uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
"type": "application/vnd.sas.business.rule.function"
},
{
"method": "DELETE",
"rel": "delete",
"href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
"uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d"
},
{
"method": "GET",
"rel": "up",
"href": "/businessRules/functions",
"uri": "/businessRules/functions",
"type": "application/vnd.sas.collection",
"itemType": "application/vnd.sas.business.rule.function"
},
{
"method": "GET",
"rel": "category",
"href": "/businessRules/functionCategories/85329ae9-52df-444f-8e18-bffb1a523da7",
"uri": "/businessRules/functionCategories/85329ae9-52df-444f-8e18-bffb1a523da7",
"type": "application/vnd.sas.business.rule.function.category"
}
],
"hidden": false,
"nameQuoted": false
}Changes
No recorded changes to this operation across all 1 revision of this API.