Viewing Spare Parts of a Model
You use this API to view the spare parts of a model.
Request
-
HTTP Method: GET
-
URL: Application_URL/services/api/v1/models({modelId})/spareparts?status=<STATUS>&$filter=substringof(<FILTER_VALUE>, <PROPERTY_NAME>)>
-
Query Parameters: Status and $filter
$filter: allows you to specify a search text using which you can filter the models
Description: Use the URL with STATUS of the model to get the spare parts assigned. You can also use this API to filter the results using $filter.
-
Example URL: Application_URL/services/api/v1/models(E0B15BE85E2B41FBA06069B8D61CEB09)/spareparts?status=2
-
Authorization: You must have the roles MODEL_READ, MODEL_EDIT, or MODEL_DELETE assigned to your user ID in the SAP Cloud Platform account.
Response
-
The system returns the spare parts assigned to the model for the specified model ID and version.
-
If the model does not have any spare parts assigned, the system returns an empty list.
For more information, see https://help.sap.com/doc/e8d1e2658da546de98ef9a6038474334/1902/en-US/model.html#models__modelId___spareparts_get.