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

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 Leaders.
March 1, 2021

Hi @Daniel Oates

can you share the PHP script that you are using?

BR

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events