Groups: update
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी ग्रुप के मेटाडेटा में बदलाव करता है. फ़िलहाल, ग्रुप के टाइटल को ही अपडेट किया जा सकता है. (ग्रुप आइटम जोड़ने और हटाने के लिए, groupItems.insert
और groupItems.delete
का इस्तेमाल करें.)
अनुरोध
एचटीटीपी अनुरोध
PUT https://youtubeanalytics.googleapis.com/v2/groups
अनुमति देना
इस अनुरोध के लिए, इनमें से कम से कम एक स्कोप के साथ अनुमति की ज़रूरत है (पुष्टि और अनुमति के बारे में ज़्यादा पढ़ें).
स्कोप |
https://www.googleapis.com/auth/yt-analytics.readonly |
अपने YouTube कॉन्टेंट के लिए YouTube Analytics की रिपोर्ट देखें. इस स्कोप से, उपयोगकर्ता गतिविधि की मेट्रिक का ऐक्सेस मिलता है, जैसे कि व्यू और रेटिंग की संख्या. |
https://www.googleapis.com/auth/yt-analytics-monetary.readonly |
अपने YouTube वीडियो से होने वाली आय की जानकारी देने वाली YouTube Analytics की रिपोर्ट देखें. इस स्कोप में, उपयोगकर्ता गतिविधि की मेट्रिक के साथ-साथ, अनुमानित रेवेन्यू और विज्ञापन की परफ़ॉर्मेंस की मेट्रिक का ऐक्सेस मिलता है. |
https://www.googleapis.com/auth/youtube |
अपना YouTube खाता मैनेज करें. YouTube Analytics API में, चैनल के मालिक इस स्कोप का इस्तेमाल करके, YouTube Analytics के ग्रुप और ग्रुप आइटम मैनेज करते हैं. |
https://www.googleapis.com/auth/youtubepartner |
YouTube पर YouTube ऐसेट और उससे जुड़े कॉन्टेंट को देखें और मैनेज करें. YouTube Analytics API में, कॉन्टेंट के मालिक इस स्कोप का इस्तेमाल करके, YouTube Analytics के ग्रुप और ग्रुप आइटम मैनेज करते हैं. |
पैरामीटर
नीचे दी गई टेबल में उन पैरामीटर की सूची दी गई है जिनका इस्तेमाल इस क्वेरी में किया जा सकता है. सूची में दिए गए सभी पैरामीटर, क्वेरी पैरामीटर हैं.
पैरामीटर |
वैकल्पिक पैरामीटर |
onBehalfOfContentOwner |
string
इस पैरामीटर का इस्तेमाल सिर्फ़ अनुमति वाले अनुरोध में किया जा सकता है. ध्यान दें: यह पैरामीटर सिर्फ़ उन YouTube कॉन्टेंट पार्टनर के लिए है जिनके पास कई अलग-अलग YouTube चैनलों का मालिकाना हक है और जिन्हें उन्हें मैनेज करने की अनुमति है.
onBehalfOfContentOwner पैरामीटर से पता चलता है कि अनुरोध के लिए दिए गए क्रेडेंशियल, उस YouTube उपयोगकर्ता की पहचान करते हैं जो पैरामीटर की वैल्यू में बताए गए कॉन्टेंट के मालिक की ओर से काम कर रहा है. इसकी मदद से, कॉन्टेंट के मालिक एक बार पुष्टि करके अपने सभी वीडियो और चैनल का डेटा ऐक्सेस कर सकते हैं. इसके लिए, उन्हें हर चैनल के लिए पुष्टि करने के क्रेडेंशियल देने की ज़रूरत नहीं होती. उपयोगकर्ता जिस खाते से पुष्टि करता है वह YouTube कॉन्टेंट के मालिक के खाते से लिंक होना चाहिए. |
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में ग्रुप का संसाधन दें.
उस संसाधन के लिए, आपको इन प्रॉपर्टी की वैल्यू देनी होगी. ध्यान दें कि अनुरोध से snippet.title
फ़ील्ड की वैल्यू अपडेट हो जाती है.
जवाब
अगर यह तरीका कामयाब होता है, तो यह जवाब के मुख्य हिस्से में ग्रुप रिसॉर्स दिखाता है.
गड़बड़ियां
एपीआई में, गड़बड़ी के ऐसे मैसेज नहीं होते जो इस एपीआई के तरीके के लिए खास हों. हालांकि, इस तरीके से भी गड़बड़ी के मैसेज के दस्तावेज़ में दी गई, एपीआई से जुड़ी सामान्य गड़बड़ियां दिख सकती हैं.
इसे आज़माएं!
इस एपीआई को कॉल करने के लिए, APIs Explorer का इस्तेमाल करें. साथ ही, एपीआई का अनुरोध और रिस्पॉन्स देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThis API method updates the metadata of a YouTube Analytics group, specifically allowing modification of the group's title.\u003c/p\u003e\n"],["\u003cp\u003eTo use this API, you need to authorize with one of several scopes, including \u003ccode\u003eyt-analytics.readonly\u003c/code\u003e, \u003ccode\u003eyt-analytics-monetary.readonly\u003c/code\u003e, \u003ccode\u003eyoutube\u003c/code\u003e, or \u003ccode\u003eyoutubepartner\u003c/code\u003e, each providing different levels of access.\u003c/p\u003e\n"],["\u003cp\u003eThe API endpoint for updating a group's metadata is \u003ccode\u003ePUT https://youtubeanalytics.googleapis.com/v2/groups\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a group resource with values specified for the \u003ccode\u003eid\u003c/code\u003e and \u003ccode\u003esnippet.title\u003c/code\u003e properties.\u003c/p\u003e\n"],["\u003cp\u003eContent owners managing multiple channels can use the \u003ccode\u003eonBehalfOfContentOwner\u003c/code\u003e parameter to authenticate once and access data across all their channels.\u003c/p\u003e\n"]]],["This API method updates a YouTube Analytics group's metadata, specifically the group's title. A PUT request is sent to `https://youtubeanalytics.googleapis.com/v2/groups`, requiring authorization via specific scopes for managing YouTube content and analytics. The request body must include a group resource with the `id` and the updated `snippet.title`. Content owners can use the `onBehalfOfContentOwner` parameter for channel management. Upon success, a group resource is returned.\n"],null,["# Groups: update\n\nModifies the metadata for a group. Currently, the only property that can be updated is the group's title. (Use the [groupItems.insert](/youtube/analytics/reference/groupItems/insert) and [groupItems.delete](/youtube/analytics/reference/groupItems/delete) to add and remove group items.)\n\nRequest\n-------\n\n### HTTP request\n\n```\nPUT https://youtubeanalytics.googleapis.com/v2/groups\n```\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes ([read more about authentication and authorization](/youtube/analytics/authentication)).\n\n| Scopes ||\n|----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| https://www.googleapis.com/auth/yt-analytics.readonly | View YouTube Analytics reports for your YouTube content. This scope provides access to user activity metrics, like view counts and rating counts. |\n| https://www.googleapis.com/auth/yt-analytics-monetary.readonly | View YouTube Analytics monetary reports for your YouTube content. This scope provides access to user activity metrics and to estimated revenue and ad performance metrics. |\n| https://www.googleapis.com/auth/youtube | Manage your YouTube account. In the YouTube Analytics API, channel owners use this scope to manage YouTube Analytics groups and group items. |\n| https://www.googleapis.com/auth/youtubepartner | View and manage YouTube assets and associated content on YouTube. In the YouTube Analytics API, content owners use this scope to manage YouTube Analytics groups and group items. |\n\n### Parameters\n\nThe table below lists the parameters that this query supports. All of the parameters listed are query parameters.\n\n| Parameters ||\n|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| **Optional parameters** |||\n| `onBehalfOfContentOwner` | `string` This parameter can only be used in a properly [authorized request](/youtube/analytics/authentication). **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The **onBehalfOfContentOwner** parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner. |\n\n### Request body\n\nProvide a [group resource](/youtube/analytics/reference/groups#resource) in the request body.\nFor that resource, you must specify a value for the following properties. Note that the request updates the `snippet.title` field's value.\n\n\u003cbr /\u003e\n\n- `id`\n- `snippet.title`\n\n\u003cbr /\u003e\n\nResponse\n--------\n\nIf successful, this method returns a [group resource](/youtube/analytics/reference/groups#resource) in the response body.\n\nErrors\n------\n\nThe API does not define any error messages that are unique to this API method. However, this method could still return general API errors listed in the [error message](/youtube/analytics/reference/errors#general) documentation.\n\nTry it!\n-------\n\nUse the APIs Explorer to call this API and see the API request and response."]]