Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How can I upload files to EWM defects programmatically?

How can I upload files (PDF of HTML) to defects in EWM programmatically? What is the correct endpoint/format for uploading attachments?

Tested approaches (all failed):
- POST to /ccm/oslc/contexts/{project}/attachments
    Content-Type: application/octet-stream -> HTTP 415 Unsupported Media Type
    Content-Type: text/html -> HTTP 415
    Content-Type: multipart/form-data -> HTTP 415
   - POST to IAttachmentRestService -> HTTP 501 Not Implemented
   - POST to IWorkItemRestService/workItem/{id}/attachments -> HTTP 400

0 votes



One answer

Permanent link

https://rsjazz.wordpress.com/2012/08/01/uploading-attachments-to-work-items/ Java API. AFAIK the API you are trying is internal and not documented. Some posts in this forum suggest others have been able to figure it out.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,099

Question asked: Jul 08, 11:24 a.m.

Question was seen: 73 times

Last updated: 2 days ago

Confirmation Cancel Confirm