Assigning Documents to a Spare Part
You use this API to assign and unassign documents for a part. For assigning documents use 'operation' as 'add' and for unassigning documents use 'operation' as 'remove' in payload.
Request
-
HTTP Method: PUT
-
URL: Application_URL/rest/api/v1/parts/documents
-
Example URL: Application_URL/rest/api/v1/models(E0B15BE85E2B41FBA06069B8D61CEB09)/documents
-
Authorization: You must have the roles PART_DELETE or PART_EDIT 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/b20aaa6c214a40d38776caf710271f60/1902/en-US/parts.html#parts_documents_put.
Response
-
The system assigns the documents to the spare part.
For more information, see https://help.sap.com/doc/b20aaa6c214a40d38776caf710271f60/1902/en-US/parts.html#parts_documents_put.