get_content_groups

List the caller's content groups (collections).

get_content_groups

List the caller's content groups (collections).

Safety class: C · API type: portal · Min version:

📘

Confinement

Class C: read-only; lists only content groups owned by the authenticated portal user. Non-prod only.

Signatures

def get_content_groups(sdk):
    """List the caller's content groups; return the result object or None."""
    return sdk.get_content_groups()
export async function getContentGroups(sdk) {
    // List the caller's content groups.
    return await sdk.getContentGroups();
}

Parameters

Parameter (Python)Parameter (JS)TypeRequiredNotes
sdksdkNomad_SDKyes

Returns

dict | None — an OBJECT/envelope of the caller's content groups (NOT a plain array like get_live_channels); None on failure.

Errors

  • 401 unauthenticated
  • InvalidAPITypeException (admin session)

See also: Python ↔ JS naming map · Return shapes.