Update a Connector Rule

PUT {{baseUrl}}/connector-rules/:id

Updates an existing connector rule with the one provided in the request body. Note that the fields 'id', 'name', and 'type' are immutable. A token with ORG_ADMIN authority is required to call this API.

Request Body

{"id"=>"8113d48c0b914f17b4c6072d4dcb9dfe", "name"=>"WebServiceBeforeOperationRule", "sourceCode"=>{"version"=>"1.0", "script"=>"return \"Mr. \" + firstName;"}, "type"=>"BuildMap", "description"=>"This rule does that", "signature"=>{"input"=>[{"name"=>"firstName", "description"=>"the first name of the identity", "type"=>"String"}, {"name"=>"firstName", "description"=>"the first name of the identity", "type"=>"String"}], "output"=>{"name"=>"firstName", "description"=>"the first name of the identity", "type"=>"String"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"created":"021-07-22T15:59:23Z","id":"8113d48c0b914f17b4c6072d4dcb9dfe","name":"WebServiceBeforeOperationRule","sourceCode":{"version":"1.0","script":"return \"Mr. \" + firstName;"},"type":"BuildMap","description":"This rule does that","signature":{"input":[{"name":"firstName","description":"the first name of the identity","type":"String"},{"name":"firstName","description":"the first name of the identity","type":"String"}],"output":{"name":"firstName","description":"the first name of the identity","type":"String"}},"attributes":{},"modified":"021-07-22T15:59:23Z"}