CiviCRM icon

CiviCRM

Interact with CiviCRM API v4 to manage contacts, memberships, groups, and more.

Group → Create

AI-generated

Summary

Create a CiviCRM Group from the configured field names and values, then return the created group record.

Inputs

  • Fields — Add one or more field name/value pairs for the group. Empty field names and empty values are skipped; values are converted to booleans, numbers, or JSON objects/arrays when they parse as such.
  • Runtime Bearer Token (Optional) — Optional JWT for the CiviCRM user whose permissions should apply. Set it directly or with an expression; when supplied, the node uses it for the request and does not retry with the credential's API key.
  • Base URL Override — Optional CiviCRM site root for this item, without /civicrm. Defaults to the credential's Base URL; a missing scheme is treated as https://, and only http(s) URLs are accepted.

Output shape

A single n8n item containing the created Group record as JSON.

After creating the group, the node fetches it by its returned ID. If that ID is missing, creation fails; if the follow-up fetch has no values, the output JSON is an empty object. With continueOnFail enabled, an item-level error message is returned instead of throwing.

Links

Discussion