Skip to main content
POST
/
table
/
reference
Create a table reference
curl --request POST \
  --url https://app.myhero.so/table/reference \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tableId": "<string>",
  "columnId": "<string>",
  "documentId": "<string>",
  "_id": "<string>",
  "relatedRowId": "<string>",
  "oneToManyColumnId": "<string>",
  "oneToManyInstanceIds": [
    "<string>"
  ],
  "type": "relation"
}
'
{
  "data": {
    "_id": "<string>",
    "documentId": "<string>",
    "workspaceId": "<string>",
    "tableId": "<string>",
    "columnId": "<string>",
    "relatedRowId": "<string>",
    "columnName": "<string>",
    "tableName": "<string>",
    "type": "relation",
    "createdAt": 123,
    "updatedAt": 123,
    "originId": "<string>",
    "oneToManyColumnId": "<string>",
    "oneToManyInstanceIds": [
      "<string>"
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Links a table column into a document, optionally binding it to a specific row. A reference can be a relation (one-to-one row link) or a reference (one-to-many). Returns the created TableReference document.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
tableId
string
required
Minimum string length: 1
columnId
string
required
Minimum string length: 1
documentId
string
required
Minimum string length: 1
_id
string
oneToManyColumnId
string | null
oneToManyInstanceIds
string[]
type
enum<string>
Available options:
relation,
reference

Response

200 response

data
object
required