Having issue with our Importer utility for Zephyr for Jira Cloud.Please click here for the steps to resolve the issue. If you are not able to access Capture Cloud and seeing a message, it means your Capture cloud instance is not migrated as part of our GDPR and Atlassian privacy policy. Please click here for the steps to Migrate your Capture Cloud instance to use Capture.
Support | Zephyr

Delete an attachment from a step result using ZAPI (Rest API)

Created on


How to delete an attachment from a step result



1)You need to first retrieve the attachment Id by using stepresultid

Please find the sample request below.


2)Next you need to pass this attachment Id value in your Rest API request call.

Please check the sample code snippet below

attachmentId = "89"

values = dumps({
"id": attachmentId

request = Request(baseURL + "/rest/zapi/latest/attachment/" + attachmentId, data=values, headers=headers)
request.get_method = lambda: 'DELETE'
response_body = urlopen(request).read()

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk