Library Content Packs

Get All Library Content Packs

This endpoint retrieves a list of Library Content Pack resources. The Content Pack name and active status are returned. Only content that belongs to active Content Packs will be used in Projects. Note that this endpoint is only accessible to users with the 'Customize Content' permission.

GET /api/v2/library/content-packs/

GET /api/v2/library/content-packs/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json

{
    "results": [
        {
            "name": "Application Security",
            "active": true
        },
        {
            "name": "Application Security:Language-Framework",
            "active": true
        },
        {
            "name": "Compliance",
            "active": true
        },
        {
            "name": "Operational Security",
            "active": true
        },
        {
            "name": "Process Activities",
            "active": true
        }
    ]
}

Activating/Deactivating Library Content Packs

This endpoint sets content packs belonging to the user's organization as active/inactive. If a content pack is to be set as active, its ancestors need to be selected as well. Similarly, should a content pack be marked for deselection, all of its descendants need to be deselected as well.

Either select and/or deselect needs to be specified for this to be a valid request.

Fields Required Description
select No A list of content pack names to be set as active.
deselect No A list of content pack names to be set as inactive.

POST /api/v2/library/content-packs/

POST /api/v2/library/content-packs/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"

{
    "select": ["A:B:C", "A:B", "A"],
    "deselect": ["D:E", "D", "D:F"]
}
HTTP/1.1 200 OK
Content-Type: application/json

{
    "results": [
        {
            "name": "Application Security",
            "active": true
        },
        {
            "name": "Application Security:Language-Framework",
            "active": true
        },
        {
            "name": "Compliance",
            "active": true
        },
        {
            "name": "Operational Security",
            "active": true
        },
        {
            "name": "Process Activities",
            "application": true
        }
    ]
}

results matching ""

    No results matching ""