Method: files.copy
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
HTTP অনুরোধ
POST https://www.googleapis.com/drive/v3/files/{fileId}/copy
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
fileId | string ফাইলের আইডি। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
enforceSingleParent (deprecated) | boolean বাতিল করা হয়েছে: একাধিক ফোল্ডারে ফাইল কপি করা আর সমর্থিত নয়। পরিবর্তে শর্টকাট ব্যবহার করুন. |
ignoreDefaultVisibility | boolean তৈরি করা ফাইলের জন্য ডোমেনের ডিফল্ট দৃশ্যমানতা সেটিংস উপেক্ষা করা হবে কিনা। ডোমেন অ্যাডমিনিস্ট্রেটররা ডিফল্টরূপে ডোমেনে দৃশ্যমান সমস্ত আপলোড করা ফাইল বেছে নিতে পারেন; এই প্যারামিটার অনুরোধের জন্য সেই আচরণকে বাইপাস করে। অনুমতি এখনও মূল ফোল্ডার থেকে উত্তরাধিকারসূত্রে পাওয়া যায়। |
keepRevisionForever | boolean নতুন হেড রিভিশনে keepForever ফিল্ড সেট করা হবে কিনা। এটি শুধুমাত্র Google ড্রাইভে বাইনারি সামগ্রী সহ ফাইলগুলির জন্য প্রযোজ্য৷ ফাইলের জন্য শুধুমাত্র 200টি সংশোধন চিরতরে রাখা যেতে পারে। যদি সীমা পৌঁছে যায়, পিন করা সংশোধনগুলি মুছে ফেলার চেষ্টা করুন। |
ocrLanguage | string ছবি আমদানির সময় OCR প্রক্রিয়াকরণের জন্য একটি ভাষা ইঙ্গিত (ISO 639-1 কোড)। |
supportsAllDrives | boolean অনুরোধ করা অ্যাপ্লিকেশনটি আমার ড্রাইভ এবং শেয়ার্ড ড্রাইভ উভয়কেই সমর্থন করে কিনা৷ |
supportsTeamDrives (deprecated) | boolean বাতিল করা হয়েছে: পরিবর্তে supportsAllDrives ব্যবহার করুন। |
includePermissionsForView | string প্রতিক্রিয়াতে কোন অতিরিক্ত ভিউ এর অনুমতি অন্তর্ভুক্ত করতে হবে তা নির্দিষ্ট করে। শুধুমাত্র published সমর্থিত. |
includeLabels | string প্রতিক্রিয়ার labelInfo অংশে অন্তর্ভুক্ত করার জন্য লেবেলের আইডিগুলির একটি কমা দ্বারা পৃথক করা তালিকা৷ |
শরীরের অনুরোধ
অনুরোধের অংশে File
একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে File
একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/drive
-
https://www.googleapis.com/auth/drive.appdata
-
https://www.googleapis.com/auth/drive.file
-
https://www.googleapis.com/auth/drive.photos.readonly
কিছু সুযোগ সীমাবদ্ধ এবং সেগুলি ব্যবহার করার জন্য আপনার অ্যাপের নিরাপত্তা মূল্যায়ন প্রয়োজন। আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-26 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Method: files.copy\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a copy of a file and applies any requested updates with patch semantics.\n\n### HTTP request\n\n`POST https://www.googleapis.com/drive/v3/files/{fileId}/copy`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------|\n| `fileId` | `string` The ID of the file. |\n\n### Query parameters\n\n| Parameters ||\n|---------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `enforceSingleParent` | `boolean` Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead. |\n| `ignoreDefaultVisibility` | `boolean` Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders. |\n| `keepRevisionForever` | `boolean` Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions. |\n| `ocrLanguage` | `string` A language hint for OCR processing during image import (ISO 639-1 code). |\n| `supportsAllDrives` | `boolean` Whether the requesting application supports both My Drives and shared drives. |\n| `supportsTeamDrives` **(deprecated)** | `boolean` Deprecated: Use `supportsAllDrives` instead. |\n| `includePermissionsForView` | `string` Specifies which additional view's permissions to include in the response. Only 'published' is supported. |\n| `includeLabels` | `string` A comma-separated list of IDs of labels to include in the `labelInfo` part of the response. |\n\n### Request body\n\nThe request body contains an instance of [File](/workspace/drive/api/reference/rest/v3/files#File).\n\n### Response body\n\nIf successful, the response body contains an instance of [File](/workspace/drive/api/reference/rest/v3/files#File).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/drive`\n- `\n https://www.googleapis.com/auth/drive.appdata`\n- `\n https://www.googleapis.com/auth/drive.file`\n- `\n https://www.googleapis.com/auth/drive.photos.readonly`\n\nSome scopes are restricted and require a security assessment for your app to use them. For more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]