Skip to main content
POST
/
templates
/
copy
/
documents
Copy document templates to a project
curl --request POST \
  --url https://app.myhero.so/templates/copy/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "templateIds": [
    "<string>"
  ],
  "parentId": "<string>",
  "projectId": "<string>",
  "workspaceId": "<string>"
}
'
{
  "data": {
    "projectId": "<string>",
    "workspaceId": "<string>",
    "firstNewDocumentId": "<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.

Copies up to 10 document templates into a user’s project, refreshing all internal IDs in the process. A projectId or workspaceId must be supplied; when only workspaceId is given a new project named “Template Project” is created automatically. Returns the target projectId, workspaceId, and the firstNewDocumentId for navigation.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
templateIds
string[]
required
Minimum array length: 1
Minimum string length: 1
parentId
string
projectId
string
workspaceId
string

Response

200 response

data
object
required