Skip to main content
POST
/
clause-reference
/
paste
Paste clause references
curl --request POST \
  --url https://app.myhero.so/clause-reference/paste \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "oldToNewClauseReferenceIds": {},
  "documentId": "<string>"
}
'
{
  "data": [
    {
      "_id": "<string>",
      "blockId": "<string>",
      "documentId": "<string>",
      "workspaceId": "<string>",
      "hierarchy": "<string>",
      "createdAt": 123,
      "updatedAt": 123,
      "originId": "<string>",
      "isDeleted": false
    }
  ],
  "version": 1
}

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.

Duplicates clause references during a paste operation by mapping old reference IDs to new IDs supplied in oldToNewClauseReferenceIds. Verifies read access to all source documents and edit access to the destination documentId. Returns the newly created ClauseReference array.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
oldToNewClauseReferenceIds
object
required
documentId
string
required
Minimum string length: 1

Response

201 response

data
object[]
required
version
enum<number>
required
Available options:
1