Updating Model Components
This API allows you to update the components of a model. The components you add or remove should be the immediate child components of the model. The API does not support partial update of data.
For example, if you have a component A assigned to model B and you want to assign a new component C to B, then you must send both A and C in the request payload. The API removes the components that are not present in the request payload.
Request
-
HTTP Method: PUT
-
URL: Application_URL/services/api/v1/models({modelId})/components
-
Example URL: Application_URL/services/api/v1/models(E0B15BE85E2B41FBA06069B8D61CEB09)/components
-
Authorization: You must have the roles MODEL_EDIT or MODEL_DELETE assigned to your user IDin the SAP Cloud Platform account.
-
Request Schema: To know about fields that you can use in a request payload, refer to the request schema in https://help.sap.com/doc/e8d1e2658da546de98ef9a6038474334/1902/en-US/model.html#models__modelId___components_put.
Response
-
The system returns the updated model components for the specified model id.
For more information, see https://help.sap.com/doc/e8d1e2658da546de98ef9a6038474334/1902/en-US/model.html#models__modelId___components_put.