We are trying to upload the document using D2-REST APIs. We were able to upload the document but if there are required attributes missing/incorrect while uploading, then also document is getting uploaded without an error.
Is there any way or API to check the provided attributes are correct or not while uploading the document?
Also, we are using value-config API to get all the properties, it gives us all the properties for the type, but the required information is different i.e. if we open the D-2 it shows the Product Code, Artifact as mandatory fields but in JSON response we are required property value to false. Please suggest.