Update a rule
1 min
PUT
https://provisioning.rs.int.{environment}.korfinancial.com/clients/{entityIdentifier}/rules/{ruleId}
Path Parameters
- entityIdentifierstring<uuid>requiredExampleDescription
- ruleIdstring<uuid>requiredExampleDescription
Body Parameters
- bodyRuleUpdateRequestDescription
- namestringExampleDescription
- notestringrequiredExampleDescription
- ruleSetsstring[]Description
- functionsFunction[]requiredDescription
- argumentReferenceIdentifierstringExampleDescription
- categorystringExampleDescription
- tagstringExample
[ "sourceField", "upperCase", "mandate" ]
Description - functionMetadatastringExample
{ "id": "5c7bf808ac0c507e", "value": { "x": -105.2109375, "y": -84.43359375 } }Description - argumentsFunctionArgument[]Description
- typestringExampleDescription
- namestringExample
[ "function", "argument0", "actionType" ]
Description - valueAnyValueDescription
- ruleMetadatastringExample
{ "connections": [ { "id": "4568e6983fef85d9", "source": "2d7bc70c10f8db77", "sourceOutput": "outputKDMField", "target": "d75cd0beba2bf8b0", "targetInput": "upperFuncInput_argument0" }, { "id": "660c0766dc3599aa", "source": "d75cd0beba2bf8b0", "sourceOutput": "upperFuncOutput", "target": "e25c88e883e204a6", "targetInput": "mandateInput" } ], "targetKDMField": { "id": "2d7bc70c10f8db77", "value": { "x": -133.265625, "y": -38.0546875 } } }Description - statusRuleStatusExampleDescription
Responses
202
400
401
403
404
405
406
415
500
504
default
curl
curl --request PUT \
--url https://provisioning.rs.int.{environment}.korfinancial.com/clients/{entityIdentifier}/rules/{ruleId} \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"note": "Updated to also cover the ESMA mandate",
"functions": [
{}
]
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"note": "Updated to also cover the ESMA mandate",
"functions": [
{}
]
});
var requestOptions = {
method: 'PUT',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://provisioning.rs.int.{environment}.korfinancial.com/clients/{entityIdentifier}/rules/{ruleId}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://provisioning.rs.int.{environment}.korfinancial.com/clients/{entityIdentifier}/rules/{ruleId}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Put.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"note": "Updated to also cover the ESMA mandate",
"functions": [
{}
]
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://provisioning.rs.int.{environment}.korfinancial.com/clients/{entityIdentifier}/rules/{ruleId}"
payload = json.dumps({
"note": "Updated to also cover the ESMA mandate",
"functions": [
{}
]
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, data=payload)
print(response.text)
202
// Rule update has been accepted
400
// Bad Request
401
// Unauthorized
403
// Forbidden
404
// Not Found
405
// Method Not Allowed
406
// Not Acceptable
415
// Unsupported Media Type
500
// Internal Server Error
504
// Gateway Timeout
default
// Internal Server Error