brainX icon

brainX

Interact with the brainX APP

Add Relations

AI-generated

Summary

Adds relations to a Brain X record by sending the supplied related record IDs to the relations API. Enter the target Record ID and a comma-separated list of related IDs; IDs are parsed as integers, and the server infers each related record’s entity.

Inputs

  • Record ID (required) — ID of the record to which relations are added.
  • Related Record IDs (required) — Comma-separated related record IDs. The operation trims entries, ignores empty entries, and parses each as an integer; at least one numeric ID must remain.

Output shape

A single item containing the API response for the add-relations request.

The operation sends POST /api/relations/{recordId} with a body shaped as {"records":[...numeric IDs...]}. If the IDs contain no numeric entries, it fails with an error.

Links

Discussion