Component Countermeasure Status Mappings

Get all component Countermeasure status mappings

This endpoint returns a list of Component Countermeasure Status Mappings.

GET /api/v2/task-statuses/component-mappings/

GET /api/v2/task-statuses/component-mappings/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json

{
    "results": [
        {
            "id": 1,
            "status_type": "Implemented",
            "task_status": "TODO"
        },
        {
            "id": 2,
            "status_type": "Introduced",
            "task_status": "DONE"
        }

    ]
}

Update a component Countermeasure status mapping

Update a single Component Countermeasure Status Mapping by specifying the id. Only the field task_status can be updated.

PATCH /api/v2/task-statuses/component-mappings/{mapping_id}/

URL Parameters

Parameter Description
mapping_id The id of the Component Countermeasure Status Mapping to update.

Payload

Fields Required Description
task_status No The slug of the new mapped Countermeasure Status. This slug cannot be already in use for another mapping.
PATCH /api/v2/task-statuses/component-mappings/1/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"

{
    "task_status": "NA"
}
HTTP/1.1 200 OK
Content-Type: application/json

{
    "id": 1,
    "status_type": "Implemented",
    "task_status": "NA"
}

results matching ""

    No results matching ""