Skip to main content
PUT
/
referenced-rows-in-document
/
updateRowId
Update a referenced row ID
curl --request PUT \
  --url https://app.myhero.so/referenced-rows-in-document/updateRowId \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentId": "<string>",
  "workspaceId": "<string>",
  "tableId": "<string>",
  "newRowId": "<string>"
}
'
{
  "data": {
    "acknowledged": true,
    "setOnInsert": {
      "_id": "<string>",
      "createdAt": 123
    },
    "set": {
      "tableId": "<string>",
      "documentId": "<string>",
      "workspaceId": "<string>",
      "updatedAt": 123,
      "rowId": "<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.

Updates the rowId on an existing ReferencedRowInDocument record identified by the tableId + documentId + workspaceId combination. Requires edit access to the document. Returns the MongoDB update result, or null if the record was not found.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
documentId
string
required
Minimum string length: 1
workspaceId
string
required
Minimum string length: 1
tableId
string
required
Minimum string length: 1
newRowId
string

Response

200 response

data
object
required