You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -X 'POST'
'http://localhost:8080/api/vulnerabilities/default'
-H 'accept: application/json'
-H 'FACTION-API-KEY: API_KEY'
-H 'Content-Type: application/json'
-d '[
{
"Name": "This_is_a_test",
"CategoryName": "Unvalidated Input",
"Description": "Description",
"Recommendation": "Recommendation",
"LikelihoodId": 4,
"ImpactId": 4,
"SeverityId": 4,
"Active": true
}
]'
This request will result in the creation of the vulnerability but, as you can see from the screenshot, it will not include any of the details provided. Did I miss something?
I also tried changing the name of the parameters (in the web UI for example the Likelihood parameters is "Likelyhood") but it did not yield any successful results.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I hope this is the right place to ask and, if by any chance, you recognise I have missed something and/or this is not the right place to ask feel free to delete this message.
I was trying to add vulnerabilities the available documentation at https://docs.factionsecurity.com/Importing%20Your%20Vulnerability%20Templates%20Via%20the%20API/ by using JSON with the following payload:
curl -X 'POST'
'http://localhost:8080/api/vulnerabilities/default'
-H 'accept: application/json'
-H 'FACTION-API-KEY: API_KEY'
-H 'Content-Type: application/json'
-d '[
{
"Name": "This_is_a_test",
"CategoryName": "Unvalidated Input",
"Description": "Description",
"Recommendation": "Recommendation",
"LikelihoodId": 4,
"ImpactId": 4,
"SeverityId": 4,
"Active": true
}
]'
This request will result in the creation of the vulnerability but, as you can see from the screenshot, it will not include any of the details provided. Did I miss something?
I also tried changing the name of the parameters (in the web UI for example the Likelihood parameters is "Likelyhood") but it did not yield any successful results.
Beta Was this translation helpful? Give feedback.
All reactions