Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cannot POST temporaryAttachments

So I am trying to POST to the:


endpoint with the purposes of then attaching a document to a service request via a python code.  I can do all sorts of other things like get ticket information, download attachments, and post a comment through the APIs using python.  I am using these headers:

headers = {
'Accept': 'application/json',
"Authorization": "Basic {my-authorization}",
'Content-type': 'application/json'

However when I hit the attachTemporaryFile endpoint I am getting this error:

{'errorMessage': 'The action performed required a logged in user. Please log in and try again.',
 'i18nErrorMessage': {'i18nKey': 'sd.admin.servicedesk.error.authenticated.user.required',
  'parameters': []}}

Which is weird because I am the admin.  I have also tried defining  "X-Atlassian-Token: no-check" in the headers as others have suggested.  What am I doing wrong?  Is there a way to attach a file directly to a request?  


1 answer

0 votes


I do recommend you just keep session, you can do it via request.Session()

like that one

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you