While attempting to run APIs with Postman (form-data) and swagger (JSON format), the following errors are encountered:
postman - 415 error: "errorCode": "415"
"errorMsg": "Content-type '<application>' not supported"
swagger - 415 error: "status": 415
"errorMsg": "Content -type '<application>' not supported",
The documentation had an error in https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/test-data-management/4-10/reference/rest-api-reference.html.
The API /TDMModelService/api/ca/v1/objects for registering objects accepts multipart/form-data as the request body. Each request part (body, files) are of different content-type.
Swagger UI does not support providing this kind of request body, nor does Chrome Postman. There is another tool, SoapUI, which can be used to accomplish this.
If you experience any further issues, please open a support case by going to https://support.broadcom.com.