Sign in

Copy file

documented

Creates a copy of a file.

POST /drive/v3/files/{fileId}/copyDriveno implementation yet0 runs
No 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://www.googleapis.com/drive/v3/files/{{$file_id}}/copy" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"name": "{{$name}}", "parents": ["{{$destination_folder_id}}"]}'