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.