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://docops.ca.com/ca-test-data-manager/4-2/en/reference/rest-api-reference.
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.ca.com/us.html.