Override a Util Library Function

post

/rest/v19/bml/library/functions/{namespace.variableName}/actions/override

This operation creates/updates the override for specified Util Library function.

Request

Supported Media Types
Path Parameters
Body ()
Update Util Library.
Root Schema : createUtilibrary-request
Type: object
Show Source
Nested Schema : The library attributes list to add into library
Type: array
Title: The library attributes list to add into library
The attributes list to add into library.
Show Source
Nested Schema : The library functions list to add into library
Type: array
Title: The library functions list to add into library
The library functions list to add into library.
Show Source
Nested Schema : The parameters list to add into library
Type: array
Title: The parameters list to add into library
The parameters list to add into library.
Show Source
Nested Schema : dataType-value
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : libraryFunctions
Type: object
Show Source
Nested Schema : parametersList
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

Override util library response.
Body ()
Root Schema : utilLibrary-response
Type: object
Show Source
Nested Schema : The library attributes list to add into library
Type: array
Title: The library attributes list to add into library
The attributes list to add into library.
Show Source
Nested Schema : The library functions list to add into library
Type: array
Title: The library functions list to add into library
The library functions list to add into library.
Show Source
Nested Schema : The parameters list to add into library
Type: array
Title: The parameters list to add into library
The parameters list to add into library.
Show Source
Nested Schema : dataType-value
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : libraryFunctions
Type: object
Show Source
Nested Schema : parametersList
Type: object
Show Source
Back to Top

Examples

The following example shows how to create or update the override for the specified Util Library function by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST  -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/bml/library/functions/nameSpace11.concatString/actions/override

Request Body Sample

{
  "scriptText": "return stringOne + \" \" + stringTwo;"
}

Response Body Sample

{
  "name": "ConcatString",
  "variableName": "concatString",
  "folderName": "nameSpace11",
  "scriptText": "return stringOne + \" \" + stringTwo;",
  "useTestScript": false,
  "namespace": "nameSpace11",
  "returnType": {
    "value": 1,
    "displayValue": "String"
  },
  "parameters": [{
      "name": "stringOne",
      "dataType": {
        "value": 2,
        "displayValue": "String"
      }
    }, {
      "name": "stringTwo",
      "dataType": {
        "value": 2,
        "displayValue": "String"
      }
    }
  ],
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/cpq/rest/v19/bml/library/functions/nameSpace11.concatString"
    }
  ],
  "referencesUrl": "/admin/bmllib/list_rules.jsp?id=3024451554&folder_id=3024451552&process_id=-1&doc_id=-1",
  "isReferred": false,
  "isLocked": false,
  "isOverridden": true
}
Back to Top