Skip to main content
PUT
/
document
/
update-many
Update many documents
curl --request PUT \
  --url https://app.myhero.so/document/update-many \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "docs": [
    {
      "_id": "<string>",
      "data": {
        "name": "<string>",
        "description": "<string>",
        "reference": "<string>",
        "parentId": "<string>",
        "type": "FOLDER",
        "isPublished": false
      }
    }
  ]
}
'
{
  "data": true
}

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 metadata (name, parentId, icon, published settings, etc.) for one or more documents in a single call. If any parentId changes are included, circular-reference validation is run and folder-level collaborator permissions are propagated automatically.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
docs
object[]
required
Minimum array length: 1

Response

200 response

data
enum<boolean>
required
Available options:
true