Duplicate document
documentedCreate a copy of a published document.
POST /api/v1/documents/{documentId}/duplicateDocumentsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$instance}}.omniapp.co/api/v1/documents/{{$documentId}}/duplicate?userId={{$userId}}" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$name}}", "folderPath": "{{$folderPath}}", "scope": "{{$scope}}"}'