REST Resource: parents
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
रिसॉर्स: ParentReference
फ़ाइल के पैरंट का रेफ़रंस.
किसी फ़ाइल का सिर्फ़ एक पैरंट फ़ोल्डर हो सकता है. एक से ज़्यादा पैरंट फ़ोल्डर नहीं हो सकते.
parents.get
जैसे कुछ संसाधन के तरीकों के लिए, parentId
की ज़रूरत होती है. किसी पैरंट का आईडी पाने के लिए, parents.list
तरीके का इस्तेमाल करें.
JSON के काेड में दिखाना |
{
"selfLink": string,
"id": string,
"isRoot": boolean,
"kind": string,
"parentLink": string
} |
फ़ील्ड |
selfLink |
string
सिर्फ़ आउटपुट के लिए. इस रेफ़रंस पर वापस ले जाने वाला लिंक.
|
id |
string
पैरंट का आईडी.
|
isRoot |
boolean
सिर्फ़ आउटपुट के लिए. पैरंट फ़ोल्डर, रूट फ़ोल्डर है या नहीं.
|
kind |
string
सिर्फ़ आउटपुट के लिए. यह हमेशा drive#parentReference होती है.
|
parentLink |
string
सिर्फ़ आउटपुट के लिए. माता-पिता का लिंक.
|
तरीके |
|
किसी फ़ाइल से पैरंट को हटाता है. |
|
किसी खास पैरंट का रेफ़रंस पाता है. |
|
किसी फ़ाइल के लिए पेरंट फ़ोल्डर जोड़ता है. |
|
किसी फ़ाइल के पैरंट की सूची दिखाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# REST Resource: parents\n\n- [Resource: ParentReference](#ParentReference)\n - [JSON representation](#ParentReference.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: ParentReference\n-------------------------\n\nA reference to a file's parent.\n\nA file can only have one parent folder; specifying multiple parents isn't supported.\n\nSome resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------|\n| ``` { \"selfLink\": string, \"id\": string, \"isRoot\": boolean, \"kind\": string, \"parentLink\": string } ``` |\n\n| Fields ||\n|--------------|----------------------------------------------------------------------|\n| `selfLink` | `string` Output only. A link back to this reference. |\n| `id` | `string` The ID of the parent. |\n| `isRoot` | `boolean` Output only. Whether or not the parent is the root folder. |\n| `kind` | `string` Output only. This is always `drive#parentReference`. |\n| `parentLink` | `string` Output only. A link to the parent. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------|-----------------------------------|\n| ### [delete](/workspace/drive/api/reference/rest/v2/parents/delete) | Removes a parent from a file. |\n| ### [get](/workspace/drive/api/reference/rest/v2/parents/get) | Gets a specific parent reference. |\n| ### [insert](/workspace/drive/api/reference/rest/v2/parents/insert) | Adds a parent folder for a file. |\n| ### [list](/workspace/drive/api/reference/rest/v2/parents/list) | Lists a file's parents. |"]]