API integration problem

Bart Scheltinga
Contributor
May 9, 2022

Hi all, I am trying to create an alert via the API. But I run into some problem using the POST. Before this, using GET with list alerts is working fine. 

As you can see in the screenshot I am using:

Content-Type: application/json

Response: Content type 'application/octet-stream;charset=UTF-8' not supported

Any idea?

Naamloos.png

 

 

1 answer

1 accepted

0 votes
Answer accepted
Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 9, 2022

Hi @Bart Scheltinga ,

It could be the API key being used in your request. The Create Alert API needs to use an API key from an API integration.

If you are using an API key from the API key management tab, POST / creating alerts through one of these is not supported.

Bart Scheltinga
Contributor
May 9, 2022

Hi Nick! Thanks for the fast response! 

I used the same with GET method and it worked there. Don't think the key is the problem. I used API Integration within team.

Bart

Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 9, 2022

Ok, thanks for checking. That error is pretty specific, and mentioning the wrong Content Type might be being used (which I understand contradicts your screenshot):

ct1.jpg

ct2.jpg

Bart Scheltinga
Contributor
May 9, 2022

yeah strange, right? Maybe I should use postman for testing instead, just to rule that out.

Bart Scheltinga
Contributor
May 11, 2022

I installed Postman (just like you). Now the request works so the problem seems to be on my side!

Thanks Nick!

Like Nick Haller likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events