CWE

The parent of a specified weakness, sampling by the view

get/cwe/{id}/parents

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Path parameters

idstring required

CWE ID

Query parameters

viewstring

The View_ID field specifies which view to follow in the Has_Member entries and ChildOf relationships to determine the direct parent(s). If there are no parents, the response will be empty. If no view is provided, the parents in all views will be returned

Response

success

Typestring integer required
IDstring integer required
ViewIDstring integer
Primary_Parentboolean

Example response

[
  {
    "Type": "base_weakness",
    "ID": "91",
    "ViewID": "1003"
  }
]

Changes

No recorded changes to this operation across all 5 revisions of this API.