The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

400 Bad Request - Tempo Worklogs API

Daniel Oates
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 24, 2021

Hello all,

I am using the Tempo Rest API - https://apidocs.tempo.io/#worklogs

 

I have constructed a very basic call within Postman and this works perfectly:

https://api.tempo.io/core/3/worklogs?to=2021-02-24&from=2021-02-23

I see data back and thats great.

I am now trying to build the same query using PHP for an app we use and when I construct the same query and send it to the API, I get a 400 Bad Request response back and I have no idea why. Everything looks to match the Postman query.

Here is my call:
https://api.tempo.io/core/3/worklogs?to=2021-02-24&from=2021-02-23

Here is the exception showing the exact URL being called:
Screenshot 2021-02-24 at 14.36.55.png

My Authorization header is the exact same as the one in Postman (omitted due to token).

I have no idea why this is and it is bugging me, can anyone help at all?

Thanks,
Daniel

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Alexander Eck [Tempo]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 1, 2021

Hi @Daniel Oates

can you share the PHP script that you are using?

BR

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events