create_content_group
Create a content group (the API object behind a UI "collection").
create_content_group
Create a content group (the API object behind a UI "collection").
Create a content group (UI "collection"). Delete it in teardown (global object).
Safety class: C · API type: portal · Min version: —
ConfinementClass C: a content group is a GLOBAL portal/account object (not under the run-root folder). Delete it in teardown (cleanup registry).
Signatures
def create_content_group(sdk, name):
"""Create a content group; return the group dict (carries its id) or None."""
return sdk.create_content_group(name)export async function createContentGroup(sdk, name) {
// Create a content group (UI "collection"); delete it in teardown.
return await sdk.createContentGroup(name);
}Parameters
| Parameter (Python) | Parameter (JS) | Type | Required | Notes |
|---|---|---|---|---|
sdk | sdk | Nomad_SDK | yes | |
name | name | str | yes | e.g. docs-ai collection |
Returns
dict | None — the new content group (carries its id); None on failure.
Errors
- 401 unauthenticated
- InvalidAPITypeException (admin session)
See also: Python ↔ JS naming map · Return shapes.
