Get a list of groups in LearnCenter.

get

/learn.rest/v1/learnCenters/{learnCenterId}/groups

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Groups collection fetched.
Body ()
Root Schema : GroupsResponse
Type: object
The groups response object.
Show Source
Example:
{
    "items":[
        {
            "id":766,
            "name":"ck test group",
            "parentGroupId":546,
            "statusFlag":"inactive",
            "code":"481bacda-dc63-4d92-8a08-12f807eab82d",
            "activeFromDate":"2017-05-06T00:00:00",
            "activeUntilDate":"2017-06-06T00:00:00",
            "createdDate":"2013-06-17T18:27:01.843",
            "createdBy":{
                "links":[
                    {
                        "rel":"canonical",
                        "href":"https://{url}/learn.rest/v1/users/112867"
                    }
                ]
            },
            "createdByUserId":112867,
            "lastUpdatedDate":"2018-03-20T05:00:01.553",
            "lastUpdatedBy":{
                "links":[
                    {
                        "rel":"canonical",
                        "href":"https://{url}/learn.rest/v1/users/1000"
                    }
                ]
            },
            "lastUpdatedByUserId":1000,
            "onlyAllowOwnersToEditGroup":false,
            "selfServiceOptions":"doesNotRequireApprovals",
            "owners":{
                "items":[
                    {
                        "id":112867,
                        "links":[
                            {
                                "rel":"canonical",
                                "href":"https://{url}/learn.rest/v1/learnCenters/178409/groups/766/owners/112867"
                            }
                        ]
                    }
                ],
                "links":[
                    {
                        "rel":"canonical",
                        "href":"https://{url}/learn.rest/v1/learnCenters/178409/groups/766/owners"
                    }
                ]
            },
            "links":[
                {
                    "rel":"canonical",
                    "href":"https://{url}/learn.rest/v1/learnCenters/178409/groups/766"
                }
            ]
        },
        {
            "...":null
        }
    ],
    "limit":100,
    "count":34,
    "hasMore":false,
    "links":[
        {
            "rel":"canonical",
            "href":"https://{url}/learn.rest/v1/learnCenters/178409/groups"
        }
    ]
}
Nested Schema : items
Type: array
Show Source
Nested Schema : GroupResponse
Type: object
Show Source
Example:
{
    "id":766,
    "name":"ck test group",
    "parentGroupId":546,
    "statusFlag":"inactive",
    "code":"481bacda-dc63-4d92-8a08-12f807eab82d",
    "activeFromDate":"2017-05-06T00:00:00",
    "activeUntilDate":"2017-06-06T00:00:00",
    "createdDate":"2013-06-17T18:27:01.843",
    "createdBy":{
        "links":[
            {
                "rel":"canonical",
                "href":"https://{url}/learn.rest/v1/users/112867"
            }
        ]
    },
    "createdByUserId":112867,
    "lastUpdatedDate":"2018-03-20T05:00:01.553",
    "lastUpdatedBy":{
        "links":[
            {
                "rel":"canonical",
                "href":"https://{url}/learn.rest/v1/users/1000"
            }
        ]
    },
    "lastUpdatedByUserId":1000,
    "onlyAllowOwnersToEditGroup":false,
    "selfServiceOptions":"doesNotRequireApprovals",
    "owners":{
        "items":[
            {
                "id":112867,
                "links":[
                    {
                        "rel":"canonical",
                        "href":"https://{url}/learn.rest/v1/learnCenters/178409/groups/766/owners/112867"
                    }
                ]
            }
        ],
        "links":[
            {
                "rel":"canonical",
                "href":"https://{url}/learn.rest/v1/learnCenters/178409/groups/766/owners"
            }
        ]
    },
    "links":[
        {
            "rel":"canonical",
            "href":"https://{url}/learn.rest/v1/learnCenters/178409/groups/766"
        }
    ]
}
Nested Schema : createdBy
Type: array
Who the group is created by.
Show Source
Nested Schema : lastUpdatedBy
Type: array
The user who last updated the group.
Show Source
Nested Schema : owners
Type: array
An array of the the owners assigned to the group.
Show Source
Nested Schema : UserLinkItem
Type: object
Object of the User Link Item.
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/users/456"
}
Nested Schema : GroupLinkItem
Type: object
Link to a group item.
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/learnCenters/178409/groups/456"
}
Nested Schema : GroupOwnerLinkItem
Type: object
Link to the list of group owners.
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/learnCenter/178409/groups/456/owners/112867"
}

401 Response

Authentication refused for provided credentials or token invalid.
Headers

500 Response

Internal server error.
Back to Top