add_contents_to_content_group
Add content ids (e.g. confined assets) to a content group.
add_contents_to_content_group
Add content ids (e.g. confined assets) to a content group.
Safety class: C · API type: portal · Min version: —
ConfinementClass C: mutates a GLOBAL content group. Add only confined (run-root) asset ids so teardown still reclaims the assets; the group itself is deleted via cleanup registry.
Signatures
def add_contents_to_content_group(sdk, content_group_id, content_ids):
"""Add content ids to a content group; returns None."""
return sdk.add_contents_to_content_group(content_group_id, content_ids)export async function addContentsToContentGroup(sdk, contentGroupId, contentIds) {
// Add content ids to a content group.
return await sdk.addContentsToContentGroup(contentGroupId, contentIds);
}Parameters
| Parameter (Python) | Parameter (JS) | Type | Required | Notes |
|---|---|---|---|---|
sdk | sdk | Nomad_SDK | yes | |
content_group_id | contentGroupId | str | yes | e.g. <content-group-uuid> |
content_ids | contentIds | list[str] | yes | content ids to add |
Returns
None — no body on success.
Errors
- 401 unauthenticated
- 404 group/content not found
- InvalidAPITypeException (admin session)
See also: Python ↔ JS naming map · Return shapes.
