Forum Discussion

Kayle's avatar
New Contributor
2 years ago

How to attach a file to the case step result?

I want to use API to attach a file to the case step. But I do not find an API. Can you help me? If you need more information please tell me. THX      
  • Kayle's avatar
    2 years ago

    I resolved the question.


    session = requests.session()
    headers = {
    "Authorization": "Basic *****",
    "X-Atlassian-Token": "no-check"

    response =, headers=headers, files={
    "file": ("expect.jpg", open("expect.jpg", "rb"), "image/jpeg")