Library Countermeasure Additional Requirements Order

Update Library Countermeasure Additional Requirements Order

This endpoint updates the order of the Library Countermeasure Additional Requirement resources for a Library Countermeasure. The Library Countermeasure is identified by the task_id parameter.

PATCH /api/v2/library/tasks/{task_id}/amendments/order/

URL Parameters

Parameter Description
task_id The id of the Library Countermeasure the Library Countermeasure Additional Requirements to re-order belong to.

Payload

Fields Required Description
order Yes The list of ordered Library Countermeasure Additional Requirement ids. All Library Countermeasure Additional Requirements that exist on the Library Countermeasure must be included in the list. The solution placeholder value "SP" must also be included where the solution placeholder should be in the new order.
PATCH /api/v2/library/tasks/T9/amendments/order/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"

{
    "order": ["TA54", "TA2896", "SP", "TA6403", "TA245"]
}
HTTP/1.1 200 OK
Content-Type: application/json

{
    "results": [
        {
            "db_id": 54,
            "id": "TA54",
            "title": "MDS2 Notes",
            "text": "The following MDS2-2013 question(s) relate to this task...",
            "type": "Built-in",
            "ordinal": -2,
            "last_updated_date": "2025-06-02T13:41:26.209848-04:00",
            "last_updated_by": {
                "id": 1,
                "email": "admin@example.com",
                "first_name": "Admin",
                "last_name": "Testerton"
            },
            "created_date_time": "2015-05-04T16:13:47.006000-04:00",
            "created_by": {
                "id": 4,
                "email": "no-reply+content_admin@localhost",
                "first_name": "SD",
                "last_name": "Elements"
            },
            "active": true
        },
        {
            "db_id": 2896,
            "id": "TA2896",
            "title": "ASD-STIG requirements",
            "text": "## V-222407 [medium]:\n__The application must provide automated mechanisms...",
            "type": "Built-in",
            "ordinal": -1,
            "last_updated_date": "2025-06-02T13:41:26.209848-04:00",
            "last_updated_by": {
                "id": 1,
                "email": "admin@example.com",
                "first_name": "Admin",
                "last_name": "Testerton"
            },
            "created_date_time": "2020-11-16T13:25:59.657000-05:00",
            "created_by": {
                "id": 4,
                "email": "no-reply+content_admin@localhost",
                "first_name": "SD",
                "last_name": "Elements"
            },
            "active": true
        },
        {
            "db_id": 6403,
            "id": "TA6403",
            "title": "Restrict user access to query repositories storing CHD (PCI-DSS 4.0)",
            "text": "Restrict all user access to querying repositories of stored cardholder data, as follows...",
            "type": "Built-in",
            "ordinal": 1,
            "last_updated_date": "2025-06-02T13:41:26.209848-04:00",
            "last_updated_by": {
                "id": 1,
                "email": "admin@example.com",
                "first_name": "Admin",
                "last_name": "Testerton"
            },
            "created_date_time": "2023-03-13T15:22:46.440000-04:00",
            "created_by": {
                "id": 4,
                "email": "no-reply+content_admin@localhost",
                "first_name": "SD",
                "last_name": "Elements"
            },
            "active": true
        },
        {
            "db_id": 245,
            "id": "TA245",
            "title": "EBA-Security of Internet Payments Notes",
            "text": "To comply with __section 10.1__, implement or use a fraud detection and prevention system...",
            "type": "Built-in",
            "ordinal": 2,
            "last_updated_date": "2025-06-02T13:41:26.209848-04:00",
            "last_updated_by": {
                "id": 1,
                "email": "admin@example.com",
                "first_name": "Admin",
                "last_name": "Testerton"
            },
            "created_date_time": "2015-09-14T15:46:07.816000-04:00",
            "created_by": {
                "id": 4,
                "email": "no-reply+content_admin@localhost",
                "first_name": "SD",
                "last_name": "Elements"
            },
            "active": true
        }
    ]
}

results matching ""

    No results matching ""