संग्रह की मदद से व्यवस्थित रहें अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Docs API की मदद से, Google Docs में दस्तावेज़ बनाए जा सकते हैं और उनमें बदलाव किए जा सकते हैं.
ऐप्लिकेशन, Docs API के साथ इंटिग्रेट किए जा सकते हैं, ताकि उपयोगकर्ता और सिस्टम से मिले डेटा, दोनों से बेहतर दस्तावेज़ बनाए जा सकें. Docs API की मदद से:
प्रोसेस को ऑटोमेट करना
एक साथ कई दस्तावेज़ बनाना
दस्तावेज़ फ़ॉर्मैट करना
इनवॉइस या कॉन्ट्रैक्ट जनरेट करना
ऑब्जेक्ट के खास एट्रिब्यूट वापस पाना
Docs API में इस्तेमाल होने वाले सामान्य शब्दों की सूची यहां दी गई है:
दस्तावेज़ आईडी
दस्तावेज़ का यूनीक आइडेंटिफ़ायर. यह एक खास स्ट्रिंग होती है, जिसमें अक्षर, संख्याएं, और कुछ खास वर्ण होते हैं. ये वर्ण किसी दस्तावेज़ का रेफ़रंस देते हैं. साथ ही, इसे दस्तावेज़ के यूआरएल से लिया जा सकता है. दस्तावेज़ का नाम बदलने पर भी, दस्तावेज़ के आईडी में कोई बदलाव नहीं होता. आईडी ढूंढने के तरीके के बारे में ज़्यादा जानने के लिए, दस्तावेज़ आईडी देखें.
कॉन्टेंट बॉडी में मौजूद ज़्यादातर एलिमेंट में startIndex और endIndex प्रॉपर्टी होती हैं. ये एलिमेंट के शुरू और खत्म होने के ऑफ़सेट की जानकारी देते हैं. यह जानकारी, एलिमेंट को घेरे हुए सेगमेंट के शुरू होने के हिसाब से दी जाती है.
इनलाइन इमेज
दस्तावेज़ में टेक्स्ट के फ़्लो में दिखने वाली इमेज. यह कोई अटैचमेंट नहीं है.
नाम वाली रेंज
टेक्स्ट की एक सीधी रेंज. NamedRange, एक ही namedRangeId वाली रेंज का कलेक्शन होता है. नाम वाली रेंज की मदद से, डेवलपर किसी दस्तावेज़ के हिस्सों को, उपयोगकर्ता के तय किए गए किसी भी लेबल से जोड़ सकते हैं. इससे, बाद में उनके कॉन्टेंट को प्रोग्राम के हिसाब से पढ़ा जा सकता है या उनमें बदलाव किया जा सकता है. किसी दस्तावेज़ में, एक ही नाम वाली कई नाम वाली रेंज हो सकती हैं. हालांकि, हर नाम वाली रेंज का एक यूनीक आईडी होता है.
Segment
Body, Header, Footer या Footnote, जिनमें स्ट्रक्चरल या कॉन्टेंट एलिमेंट शामिल हों. किसी सेगमेंट में मौजूद एलिमेंट के इंडेक्स, उस सेगमेंट की शुरुआत से मेल खाते हैं.
सुझाव
ओरिजनल टेक्स्ट में बदलाव किए बिना, दस्तावेज़ में बदलाव करना. अगर दस्तावेज़ का मालिक आपके सुझावों को स्वीकार करता है, तो वे ओरिजनल टेक्स्ट को बदल देंगे.
मिलते-जुलते विषय
Google Workspace के एपीआई का इस्तेमाल करके ऐप्लिकेशन डेवलप करने के बारे में जानने के लिए, Google Workspace पर ऐप्लिकेशन डेवलप करना लेख पढ़ें. इसमें पुष्टि करने और अनुमति देने की सुविधा के बारे में भी बताया गया है.
किसी दस्तावेज़ के बारे में खास जानकारी पाने के लिए, दस्तावेज़ देखें.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-01 (UTC) को अपडेट किया गया."],[],[],null,["The Google Docs API lets you create and modify documents in Google Docs.\n\nApplications can integrate with the Docs API to create polished\ndocuments from both user and system-provided data. The Docs API lets\nyou:\n\n- Automate processes\n- Create documentation in bulk\n- Format documents\n- Generate invoices or contracts\n- Retrieve specific attributes of objects\n\nThe following is a list of common terms used in the Docs API:\n\n*Document ID*\n\n: The unique identifier for a document. It's a particular string containing\n letters, numbers, and some special characters that reference a document and\n it can be derived from the document's URL. Document IDs are stable, even if\n the document name changes. For more information on how to find the ID, see\n [Document ID](/workspace/docs/api/concepts/document#document-id).\n\n https://docs.google.com/document/d/\u003cvar translate=\"no\"\u003eDOCUMENT_ID\u003c/var\u003e/edit\n\n*Element*\n\n: The structure that makes up a document. Top-level elements of a document\n include the [`Body`](/workspace/docs/api/reference/rest/v1/documents#body),\n [`DocumentStyle`](/workspace/docs/api/reference/rest/v1/documents#documentstyle), and\n [`List`](/workspace/docs/api/reference/rest/v1/documents#list).\n\n*Google Workspace document*\n\n: A file that a Google Workspace application, like Google Docs, creates.\n The MIME type format for Docs is\n `application/vnd.google-apps.document`. For a list of MIME types, see [Google Workspace and Google Drive supported MIME types](/drive/api/guides/mime-types).\n\n*Index*\n\n: Most *elements* within the content body have the `startIndex` and `endIndex`\n properties. These indicate the offset of an element's beginning and end,\n relative to the beginning of its enclosing *segment*.\n\n*Inline image*\n\n: An image that appears in the flow of text within a document. It's not an\n attachment.\n\n*Named range*\n\n: A contiguous range of text. A\n [`NamedRange`](/workspace/docs/api/reference/rest/v1/documents#namedrange) is a\n collection of ranges with the same `namedRangeId`. Named ranges allow\n developers to associate parts of a document with an arbitrary user-defined\n label so their contents can be programmatically read or edited later. A\n document can contain multiple named ranges with the same name, but every\n named range has a unique ID.\n\n*Segment*\n\n: The `Body`, [`Header`](/workspace/docs/api/reference/rest/v1/documents#header),\n [`Footer`](/workspace/docs/api/reference/rest/v1/documents#footer), or\n [`Footnote`](/workspace/docs/api/reference/rest/v1/documents#footnote) containing\n structural or content *elements* . The *indexes* of the elements within a\n segment are relative to the beginning of that segment.\n\n*Suggestion*\n\n: Changes to a document without changing the original text. If the owner\n approves your suggestions, they replace the original text.\n\nRelated topics\n\n- To learn about developing with Google Workspace APIs, including handling\n authentication and authorization, refer to [Develop on\n Google Workspace](/workspace/guides/get-started).\n\n- To get a conceptual overview of a document, see\n [Document](/workspace/docs/api/concepts/document).\n\n- To learn how to configure and run a Docs API app, try the\n [JavaScript quickstart](/workspace/docs/api/quickstart/js)."]]