Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Case Asset creation using API : analysis_status_id field is in fact required #599

Open
Rom1an opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Rom1an
Copy link

Rom1an commented Sep 30, 2024

Describe the bug
When adding an Asset using the endpoint /case/assets/add, if no analysis_status_id is specified, the asset will be created but:

  • Will not be listed when calling /case/assets/list
  • Will then not be listed in the interface

To Reproduce
Send a request like:

POST /case/assets/add?cid=2 HTTP/1.1
Content-Type: application/json
Authorization: XXX
Host: XXX
Content-Length: 195
 
{
"asset_type_id": "9",
"asset_domain": "iris.local",
"asset_ip": "127.0.0.1",
"asset_info": "",
"asset_name": "admin_laptop",
"asset_tags": "anewtag",
"asset_description": "A host description"
}

to the API.

Expected behavior
Since the analysis_status_id is not required (as per the documentation), the Asset should be created with no side effect.

Additional context
I am using the last available documentation of the API (2.0.2) but my instance is running API v 2.0.4.

@Rom1an Rom1an added the bug Something isn't working label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant