defectdojo_api
defectdojo_api copied to clipboard
Failure while creating new engagement
When trying to create a new angagement via API I have encountered issue described below.
URL used: /api/v1/doc/#!/engagements/engagements_list_0
JSON used:
{
"status": "Not Started",
"build_id": "",
"updated": "",
"source_code_management_uri": "",
"description": "",
"product": "/api/v1/products/4/",
"pen_test": false,
"reason": "",
"branch_tag": "",
"commit_hash": "",
"risk_path": "",
"orchestration_engine": "",
"first_contacted": "",
"active": false,
"done_testing": false,
"deduplication_on_engagement": false,
"target_end": "2019-07-07",
"tmodel_path": "",
"build_server": "",
"source_code_management_server": "",
"name": "",
"lead": "",
"created": "",
"check_list": false,
"target_start": "2019-06-06",
"version": "",
"tracker": "",
"api_test": false,
"progress": "",
"threat_model": false,
"engagement_type": "",
"test_strategy": ""
}
Response:
{"error": "Could not find the provided tool_configurations object via resource URI ''."}
There is no such key as tool_configurations
in the engagements Model Schema.
Here is the output after calling tool_configurations endpoint:
Request URL
/api/v1/tool_configurations/
Response Body
{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null, "total_count": 0}, "objects": []}
Response Code
200
Response Headers
{
"date": "Fri, 07 Jun 2019 15:59:37 GMT",
"vary": "Accept, Cookie",
"server": "nginx/1.15.11",
"x-frame-options": "SAMEORIGIN",
"content-type": "application/json",
"cache-control": "no-cache",
"connection": "keep-alive",
"content-length": "101"
}
What should be the label here?
Same issue. Any solution?