Search code examples
clearquestoslc

How to upload attachments in CQ using OSLC queries


Can anyone guide me in uploading the attachment to the Clearquest tool using OSLC queries.

I am new to OSLC. so , it would be great help, if anyone provides the steps to perform for uploading an attachment.


Solution

  • To upload an attachment , i used the below URL

    URL : https://CQURL/oslc/repo/repo_name/db/db_name/record/Record_Type-record_identifier/field/AttachedDocuments/attachment?rcm.action=modify"

    It does not allow PUT method, use POST Method and pass multipart Input, to upload an attachment.

    Status will be 201, if attachment is uploaded successfully.