Hi Yan, According to: - https://nexus.onap.org/service/local/repositories/releases/archive/org/onap/aai/schema-service/aai-schema/1.5.1/aai-schema-1.5.1.jar/!/onap/aai_swagger_html/aai_swagger_v16.html#operation--service-design-and-creation-services-service--service-id--put - https://nexus.onap.org/service/local/repositories/releases/archive/org/onap/aai/schema-service/aai-schema/1.5.1/aai-schema-1.5.1.jar/!/onap/aai_swagger_html/aai_swagger_v16.html#/definitions/service
The "service" object requires both a "service-id" and "service-description". When doing the PUT, the "service-id" needs to be in both the URL and the request body, e.g. curl -X PUT \ https://159.138.133.80:30233/aai/v13/service-design-and-creation/services/service/a61fef2b-61fa-40b7-bf03-d4db08d11eee \ -H 'Accept: application/json' \ -H 'Authorization: Basic QUFJOkFBSQ==' \ -H 'Cache-Control: no-cache' \ -H 'Content-Type: application/json' \ -H 'Postman-Token: fa571cde-0440-42ba-b9e0-a0387ea85732' \ -H 'X-FromAppId: VFC-NFVO-LCM' \ -H 'X-TransactionId: 9999' \ -d '{ "service-id": "a61fef2b-61fa-40b7-bf03-d4db08d11eee", "service-description":"service-description" }' Keong -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18896): https://lists.onap.org/g/onap-discuss/message/18896 Mute This Topic: https://lists.onap.org/mt/34092304/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
