Discussions
Dashboard中用户是哪来的
Dashboard中用户是哪来的
Posted by 18362975750 about 2 months ago
image upload API failing
Dear people,
How do you use the image upload in the visual content moderation API? I mean uploading the data, not publicly hosting it and uploading the URL.
I tried to generate a request via the API docs:
https://docs.thehive.ai/reference/post_v2-task-sync
I've downloaded the 1x1 pixel (https://en.wikipedia.org/wiki/File:1x1.png) and uploaded it via the option "media stream". This generates the following requests on the docs page:
----------
curl --request POST \
--url https://api.thehive.ai/api/v2/task/sync \
--header 'Authorization: Token {MY_API_TOKEN}' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"image": "data:image/png;name=1x1.png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII="
}
'
----------
However, executing the request results in the following error:
----------
{
"return_code": 400,
"message": "Expected input to be an object, received: data:image/png;name=1x1.png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII= - context: [\"image\"]"
}
----------
What is the proper way of using this image upload API? (And could you maybe fix the docs page?)
Thanks in advance!
Posted by Jan Kuipers 3 months ago
monitoring
Where i can find monitoring from hive API ?
Posted by vitor about 1 year ago
How to setup a project?
Hello, I am struggling to create and set up a project in the dashboard.
I have created a project. In the first step "settings" under the general tab, I have filled all the required fields. Then I moved to the classes tab. I have added two classes and when I click save, I am receiving "2 label groups approve / reject should be present" message. What should I do?
Posted by Talip Korkmazer over 1 year ago
is there any way to generate a auth token to use it in web application?
As per your API reference manual, we have to use an API key to authenticate a request. If we call your API from our backend server, there will be no issue. But if we want to use it from a client app (web/mobile applications), there is will be a security issue.
is there any way to generate a temporary auth token to use it in web/mobile applications?
Posted by Manikandan Keerthivasan over 1 year ago