Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

REST API to change token

jszhang I'm New Here Nov 29, 2021

I have a requirement to automatically change service account Jira Token before expiration,  but it seems I can't find right one, please point me to right document.



1 answer

1 accepted

1 vote
Answer accepted
Darryl Lee Community Leader Nov 29, 2021

This is possible with Server/Data Center: Creating PATs using REST API 

But I'm not finding anything similar for Cloud: Manage API tokens for your Atlassian account 

I believe that @Veera meant to say here that there is NOT "a REST END point which can be used to create API token on behalf of a user".

Further, Hans Z. on makes a good point:

Typically not because to access such an API you'd need an API token. Accessing such an API with username/password defeats some of the principles behind API/access tokens.


jszhang I'm New Here Dec 01, 2021

Thanks, I guess we have to manually renew it.

Darryl Lee Community Leader Dec 01, 2021

Yeah, sorry for the bad news. Could you please Accept my answer? Thanks!

Like jszhang likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

774 views 24 28
Read article

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