Skip to main content
PUT
/
api
/
v2
/
public
/
datarefs
/
group
curl -X PUT "https://app.refold.ai/api/v2/public/datarefs/group" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -d '{ "refNames": ["contacts", "deals"], "group": "crm-data" }'
Set or clear the group label on multiple datarefs at once. Passing an empty group unsets the field. Groups help organize related datarefs.

Authentication

x-api-key
string
required
Your Refold API key.
linked_account_id
string
required
The linked account that owns the datarefs.

Body Parameters

refNames
array
required
Names of the datarefs to update.
group
string
Group label to set. An empty string unsets the group.

Response

Returns 200 with an empty body on success.
curl -X PUT "https://app.refold.ai/api/v2/public/datarefs/group" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -d '{ "refNames": ["contacts", "deals"], "group": "crm-data" }'