Forum Discussion

shafay's avatar
shafay
Occasional Contributor
6 years ago

MIME attachment Field is required.

I am working on rest API to upload my issue on YouTrack. issue has been uploaded successfuly but for attachment i was failing so i decided to upload the attachment through importing the attachment in a created issue.

it says MIME attachment Field is Required in response with status code 400.

 

Help!

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    As it was suggested in the https://community.smartbear.com/t5/TestComplete-Functional-Web/Rest-API-Request-is-empty/td-p/175513 thread:

    -- Do required actions manually and record resulted web traffic. Analyse recorded requests and responses and figure out what data must be customised (authentication data, tokens, encoded file contents, etc.);

    -- Implement required requests and check that returned responses are as expected;

    -- Ask here if something does not work, but supply your question with the recorded original request and response, your code and the content of the actual request and returned response.

    Without the above information no one will be able to provide you with the meaningful helpful answer. (Unless this one has already implemented integration with YouTrack and is willing to share the code with you.)