You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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?
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yeah strange, right? Maybe I should use postman for testing instead, just to rule that out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I installed Postman (just like you). Now the request works so the problem seems to be on my side!
Thanks Nick!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.