Sites: add
يتطلّب تفويضًا
تتم إضافة موقع إلكتروني إلى مجموعة المواقع الإلكترونية للمستخدم في Search Console.
تجربة ذلك الآن
الطلب
طلب HTTP
PUT https://www.googleapis.com/webmasters/v3/sites/siteUrl
المعلمات
اسم المعلَمة |
القيمة |
الوصف |
مَعلمات المسار |
siteUrl |
string |
تمثّل هذه السمة عنوان URL للموقع الإلكتروني المطلوب إضافته. أمثلة:
http://www.example.com/ (لموقع إلكتروني يحمل بادئة عنوان URL) أو
sc-domain:example.com (لموقع إلكتروني في النطاق)
|
التفويض
يتطلب هذا الطلب تفويضًا بالنطاق التالي (مزيد من المعلومات عن المصادقة والترخيص).
النطاق |
https://www.googleapis.com/auth/webmasters |
نص الطلب
لا تقدِّم نص طلب باستخدام هذه الطريقة.
الرد
في حال نجاح هذه الطريقة، سيتم عرض نص استجابة فارغ.
جرّب الآن
يمكنك استخدام "مستكشف واجهات برمجة التطبيقات" أدناه لطلب هذه الطريقة على البيانات المباشرة والاطّلاع على الردّ.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-24 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-24 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Adds a website to the user's Search Console account, allowing it to be managed and monitored."],["Uses a PUT request to the specified endpoint with the website URL as a path parameter."],["Requires authorization with the `https://www.googleapis.com/auth/webmasters` scope."],["The request body should be empty, and a successful response will also be empty."]]],["This content describes adding a site to a user's Search Console. A `PUT` request to `https://www.googleapis.com/webmasters/v3/sites/siteUrl` is required, with the `siteUrl` path parameter specifying the site's URL (e.g., `http://www.example.com/` or `sc-domain:example.com`). Authorization using the `https://www.googleapis.com/auth/webmasters` scope is mandatory. No request body is needed, and a successful request returns an empty response body. The content refers to using the API Explorer to test the request.\n"]]