मीडिया आइटम मैनेज करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
मीडिया आइटम अपलोड करने के बाद, उन्हें ऐक्सेस और वापस पाया जा सकता है. साथ ही, उनके ब्यौरे भी बदले जा सकते हैं.
अनुमति का ज़रूरी दायरा
ऐप्लिकेशन से बनाए गए कॉन्टेंट के ब्यौरे बदलने के लिए, photoslibrary.edit.appcreateddata
स्कोप की ज़रूरत होती है. स्कोप के बारे में ज़्यादा जानकारी के लिए, अनुमति के दायरे देखें.
किसी मीडिया आइटम का ब्यौरा बदलने के लिए, मीडिया आइटम के आइडेंटिफ़ायर के साथ media items update
call
बनाएं और अनुरोध में नया ब्यौरा शामिल करें.
किसी मीडिया आइटम की जानकारी बदलने के लिए, यह ज़रूरी है कि आपके ऐप्लिकेशन ने वह मीडिया आइटम अपलोड किया हो. साथ ही, पुष्टि किए गए मौजूदा उपयोगकर्ता के पास उसका मालिकाना हक होना चाहिए. ब्यौरे में 1,000 से ज़्यादा वर्ण नहीं होने चाहिए.
REST
मीडिया आइटम का ब्यौरा अपडेट करने के लिए, यहां PATCH अनुरोध हेडर दिया गया है:
PATCH https://photoslibrary.googleapis.com/v1/mediaItems/media-item-id?updateMask=description
इस अनुरोध से यह तय होता है कि कौनसी प्रॉपर्टी अपडेट की जा रही हैं. इसके लिए, यूआरएल में updateMask
पैरामीटर से दिखाए गए फ़ील्ड मास्क को शामिल किया जाता है.
अनुरोध के मुख्य हिस्से में नई जानकारी शामिल करें:
{
"description": "new-media-item-description"
}
अगर अपलोड पूरा हो जाता है, तो जवाब में अपडेट किया गया मीडिया आइटम दिखता है:
{
"id": "media-item-id",
"description": "new-media-item-description",
"productUrl": "media-item-product-url",
"baseUrl": "media-items-in-album",
"mimeType": "mime-type-of-media",
"mediaMetadata": {
...
},
"contributorInfo": {
...
},
"fileName": "item-filename"
}
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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-29 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eAfter uploading media items to Google Photos, you can change their descriptions using the Google Photos API.\u003c/p\u003e\n"],["\u003cp\u003eModifying descriptions of app-created content requires the \u003ccode\u003ephotoslibrary.edit.appcreateddata\u003c/code\u003e scope and ownership by the authenticated user.\u003c/p\u003e\n"],["\u003cp\u003eTo update a description, use the \u003ccode\u003emediaItems/patch\u003c/code\u003e endpoint with the item's ID and a request body containing the new description.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eupdateMask\u003c/code\u003e parameter in the request URL specifies that only the description is being modified.\u003c/p\u003e\n"],["\u003cp\u003eThe response to a successful update request will return the complete updated media item object.\u003c/p\u003e\n"]]],["To modify a media item's description, use a `media items update call` with a PATCH request, specifying the item's ID and the `updateMask` parameter. Include the new description in the request body, ensuring it's under 1,000 characters. This requires the `photoslibrary.edit.appcreateddata` scope, with the app having uploaded the media, and the authenticated user must be the owner. A successful request returns the updated media item details, including the new description.\n"],null,[]]