get_content

Read one content record (its full properties bag) by content id + content definition id.

get_content

Read one content record (its full properties bag) by content id + content definition id.

Read a single content record through the content route. content_definition_id is the
entity id from the entity map (reference/schema.md); the returned properties dict is
keyed by that entity's field names.

Safety class: A · API type: admin · Min version:

📘

Confinement

Read-only; safe anywhere.

Signatures

def get_content(sdk, content_id, content_definition_id, is_revision=None):
    """Return the content record (its full properties bag), or None if it does not resolve."""
    return sdk.get_content(content_id, content_definition_id, is_revision)
export async function getContent(sdk, contentId, contentDefinitionId, isRevision = null) {
    // Return the content record (its full properties bag), or null if it does not resolve.
    return await sdk.getContent(contentId, contentDefinitionId, isRevision);
}

Parameters

Parameter (Python)Parameter (JS)TypeRequiredNotes
sdksdkNomad_SDKyesauthenticated client
content_idcontentIdstryese.g. <content-uuid>
content_definition_idcontentDefinitionIdstryesthe entity id from reference/schema.md (Entities table)
is_revisionisRevisionbool | NonenoNone for the current version; true to read a revision

Returns

dict | None — record envelope {contentId, contentDefinitionId, languageId, properties{...}}; None if not found. properties keys are the entity's field names (reference/schema.md).

Errors

  • 401 unauthenticated
  • 404 content record not found

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