defectdojo_api icon indicating copy to clipboard operation
defectdojo_api copied to clipboard

Failure while creating new engagement

Open wheelq opened this issue 5 years ago • 2 comments

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"
}

wheelq avatar Jun 07 '19 16:06 wheelq

What should be the label here?

wheelq avatar Jun 10 '19 10:06 wheelq

Same issue. Any solution?

atraista-ellation avatar Dec 26 '19 13:12 atraista-ellation