Issue with rationalizationApi PUT API

Hi,

I try to use rationalizationApi PUT to update a library(document), but stuck on this error:

{    "timestamp": 1726883080329,    "status": 400,    "errorCode": 310385,    "message": "Bad Request",   "details": "File size exceeds maximum supported size (-1)."}

Here is my endpoint and request:

PUT http://{my opentext DNS}/rationalizationApi/api/v1/migrationset/DEV/{document Id}:

migSetReq: {"id":"c301e378-d5c6-4f4b-a58a-afd936ee7f7f","name":"PDF Test 1234","isHidden":false,"locked":false,"fragTolerance":50,"ratTolerance":50,"dataSources":[],"outputSamples":[{"id":"b42b9280-6ff0-48c4-93e8-adf749160031","name":"ElectricityTerms&Conditions-20230215202422866.pdf","type":"PDF","isIncluded":true,"process_type":"DEFAULT","isFavorite":false},{"id":"f21dab7c-7a17-4c71-99c0-a15764290355","name":"NaturalGasTermsandConditions-20230215202422866.pdf","type":"PDF","isIncluded":true,"process_type":"DEFAULT","isFavorite":false}],"migrationType":"CONTENT","jobExecutionStatus":"EXECUTED","filter":{"baseFilter":"DesignPack","designPackId":"c0b69a8f-4d7a-4ab6-b915-76644a537c08"},"state":"DRAFT","version":1,"msid":"2db5d014-0b2e-4b9b-82f5-4161320ff9b1","status":"YELLOW","percentage":100,"type":"exstrmigrationset"}

I have tried with/without bundle upload file, but not able to get rid of this error.

Please advise what I am missing in this call.

Best Answer

  • dmei
    dmei Member
    #2 Answer ✓

    figured out the issue, have to add "boundary=- - -" in content-type header, like this:

    multipart/form-data; boundary=---<some characters values>

Answers

  • dmei
    dmei Member
    #3 Answer ✓

    figured out the issue, have to add "boundary=- - -" in content-type header, like this:

    multipart/form-data; boundary=---<some characters values>