Error Code 400 posting to CSM API

Myles Boyd
Contributor
February 27, 2025

I am "putting" an API call to

 

 

https://api.atlassian.com/jsm/csm/cloudid/cloudid/api/v1/customer/customid/details?fieldName=Company

Body

{ "values": [ "abc" ] }

 

4 out of 10 times, it responds with error 400, bad request

 

Using POSTMAN with exactly the same URL and body, it works.

 

The only HEADER in both cases is the autorization one.

Any ideas?

 

Thanks

 

 

1 answer

1 accepted

0 votes
Answer accepted
Marc - Devoteam
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.
February 27, 2025

Hi @Myles Boyd 

You will probably have to add Content-Type application/json (key - value).

Postman has this enabled by default, but on the command line is best to provide this as well

Myles Boyd
Contributor
February 27, 2025

Thanks for speedy response; will give that a go.

Like Marc - Devoteam likes this
Myles Boyd
Contributor
February 28, 2025

Thank you @mar  that worked

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events