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
                - application/json
Path Parameters
                - 
                    namespace.variableName(required): string
                    
                    VariableName with name space.
Update Util Library.
                
                
                
                Root Schema : createUtilibrary-request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            attributes: 
            array  The library attributes list to add into library
            
            Title:The library attributes list to add into libraryThe attributes list to add into library.
- 
            description: 
            string
            Title:descriptionUsage and info about the library function.
- 
            libraryFunctions: 
            array  The library functions list to add into library
            
            Title:The library functions list to add into libraryThe library functions list to add into library.
- 
            name: 
            string
            Title:nameName of the library function.
- 
            parameters: 
            array  The parameters list to add into library
            
            Title:The parameters list to add into libraryThe parameters list to add into library.
- 
            returnType: 
            object  dataType-value
            
            
- 
            scriptText: 
            string
            Title:scriptTextCode functionality of the library function.
- 
            testScript: 
            string
            Title:testScriptDebbuger test script.
- 
            useTestScript: 
            string
            Title:useTestScriptSample test script.
- 
            variableName: 
            string
            Title:variableNameThis field represents the variableName of the resource.
Nested Schema : The library attributes list to add into library
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    The library attributes list to add into libraryThe attributes list to add into library.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : The library functions list to add into library
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    The library functions list to add into libraryThe library functions list to add into library.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : The parameters list to add into library
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    The parameters list to add into libraryThe parameters list to add into library.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : dataType-value
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            displayValue: 
            string
            Title:displayValueThe library or field data type.
- 
            value: 
            integer
            Title:valuethe data type representative value.
Nested Schema : libraryFunctions
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            namespace: 
            string
            Title:namespaceUtil library floder name.
- 
            type: 
            string
            Title:typeLibrary function type either util or commerce.
- 
            variableName: 
            string
            Title:variableNamevariableName of the libaray function.
Nested Schema : parametersList
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            dataType: 
            object  dataType-value
            
            
- 
            name: 
            string
            Title:nameName of the parameter.
Response
Supported Media Types
                - application/json
Default Response
Override util library response.
                
                
                    Root Schema : utilLibrary-response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            attributes: 
            array  The library attributes list to add into library
            
            Title:The library attributes list to add into libraryThe attributes list to add into library.
- 
            description: 
            string
            Title:descriptionUsage and info about the library function.
- 
            isLocked: 
            boolean
            Title:isLockedIs this library lock?
- 
            isOverridden: 
            boolean
            Title:isOverriddenIs this library is overridden?
- 
            isReferred: 
            boolean
            Title:isReferredIs this library is using anywhere?
- 
            libraryFunctions: 
            array  The library functions list to add into library
            
            Title:The library functions list to add into libraryThe library functions list to add into library.
- 
            links: 
            array  Links to the related objects
            
            Title:Links to the related objectsLinks to the related objects
- 
            name: 
            string
            Title:nameName of the library function.
- 
            parameters: 
            array  The parameters list to add into library
            
            Title:The parameters list to add into libraryThe parameters list to add into library.
- 
            referencesUrl: 
            string
            Title:referencesUrlReference info.
- 
            returnType: 
            object  dataType-value
            
            
- 
            scriptText: 
            string
            Title:scriptTextCode functionality of the library function.
- 
            testScript: 
            string
            Title:testScriptDebbuger test script.
- 
            useTestScript: 
            string
            Title:useTestScriptSample test script
- 
            variableName: 
            string
            Title:variableNameThis field represents the variableName of the resource.
Nested Schema : The library attributes list to add into library
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    The library attributes list to add into libraryThe attributes list to add into library.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : The library functions list to add into library
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    The library functions list to add into libraryThe library functions list to add into library.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : Links to the related objects
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Links to the related objectsLinks to the related objects
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  referenceLinks
            
            Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : The parameters list to add into library
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    The parameters list to add into libraryThe parameters list to add into library.
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : dataType-value
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            displayValue: 
            string
            Title:displayValueThe library or field data type.
- 
            value: 
            integer
            Title:valuethe data type representative value.
Nested Schema : libraryFunctions
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            namespace: 
            string
            Title:namespaceUtil library floder name.
- 
            type: 
            string
            Title:typeLibrary function type either util or commerce.
- 
            variableName: 
            string
            Title:variableNamevariableName of the libaray function.
Nested Schema : referenceLinks
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectReference links for the Parent, Self, Children and Related as applicable
    
    
    
    
    Show Source
        - 
            href: 
            string
            Title:URL to the related objectURL to the related object
- 
            rel: 
            string
            Title:Link Relationship to the current objectLink Relationship to the current object
Nested Schema : parametersList
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            dataType: 
            object  dataType-value
            
            
- 
            name: 
            string
            Title:nameName of the parameter.
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
}