How to set DocumentType for inventory Document
Posted: Tue Aug 23, 2022 12:54 pm
I'm appending documents to inventory items via this API endpoint:
and can't figure out how to set the DocumentType via the query parameters.
I have tried two different values for DocumentType, but neither of them work:
1. a complete DocumentType object as returned from the API: GET /Inventory/DocumentTypes/{DocumentTypeID}. This saves the document in Jiwa but sets its type to "Default Type"
2. an existing DocumentTypeID. This results in an error: 400 Bad Request
Would appreciate any ideas on how to solve this problem.
- Code: Select all
POST /Inventory/{InventoryID}/Documents
and can't figure out how to set the DocumentType via the query parameters.
I have tried two different values for DocumentType, but neither of them work:
1. a complete DocumentType object as returned from the API: GET /Inventory/DocumentTypes/{DocumentTypeID}. This saves the document in Jiwa but sets its type to "Default Type"
2. an existing DocumentTypeID. This results in an error: 400 Bad Request
Would appreciate any ideas on how to solve this problem.