Hi all,
I'm using CPS component of ONAP Instanbul Release.

I'd like to know if is there a way to update a node partially. This is an 
example node and I want to change only GNBDUFunction attributes leaf, without  
pass the entire node from root.

{
    "my-model:ManagedElement": {
        "id": "0005",
        "attributes": {
            "locationName": "New York",
            "vendorName": "example company",
            "swVersion": "1.0"
        },
        "GNBDUFunction": [
            {
                "id": "0005.001",
                "attributes": {
                    "gNBId": 1,
                    "gNBIdLength": 32,
                    "gNBDUId": 11,
                    "gNBDUName": "gNBDU-test-0005-001"
                }
            }
        ]
    }
}

I used a PATCH http request 
/cps/api/v1/dataspaces/POC/anchors/POCAnchor/nodes?xpath=/ManagedElement[@id='0005']/GNBDUFunction[@id='0005.001']/attributes
 with this body

{
                    "gNBId": 2,
                    "gNBIdLength": 31,
                    "gNBDUId": 11,
                    "gNBDUName": "gNBDU-test-0005-001"
}

But it return ERROR 400 BAD REQUEST:

{
    "status": "400 BAD_REQUEST",
    "message": "Failed to parse json data. Unsupported xpath or json 
data:{\"gNBId\": 2, \"gNBDUId\": 31, \"gNBDUName\": \"gNBDU-test11\", 
\"gNBIdLength\": 30 }",
    "details": "Normalized Node result was already set."
}

Thanks.





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#24024): https://lists.onap.org/g/onap-discuss/message/24024
Mute This Topic: https://lists.onap.org/mt/90710074/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to