Strony: aktualizacja
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Wymaga autoryzacji
Zaktualizuj stronę.
Wypróbuj
Żądanie
Żądanie HTTP
PUT https://www.googleapis.com/blogger/v3/blogs/blogId/pages/pageId
Parametry
Nazwa parametru |
Wartość |
Opis |
Parametry wymagane |
blogId |
string |
Identyfikator bloga.
|
pageId |
string |
Identyfikator strony.
|
Autoryzacja
To żądanie wymaga autoryzacji z co najmniej jednym z tych zakresów (więcej informacji o uwierzytelnianiu i autoryzacji).
Zakres |
https://www.googleapis.com/auth/blogger |
Treść żądania
W treści żądania podaj zasób Pages.
Odpowiedź
Jeśli operacja się powiedzie, metoda zwróci w treści odpowiedzi zasób Pages.
Wypróbuj
Aby wywołać tę metodę na podstawie danych na żywo i zobaczyć odpowiedź, użyj narzędzia APIs Explorer.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-28 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-28 UTC."],[[["\u003cp\u003eUpdate a page's content using the \u003ccode\u003ePUT\u003c/code\u003e method and providing the \u003ccode\u003eblogId\u003c/code\u003e and \u003ccode\u003epageId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is required using the \u003ccode\u003ehttps://www.googleapis.com/auth/blogger\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a Pages resource, outlining the updated page content.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return the updated Pages resource.\u003c/p\u003e\n"]]],[],null,["# Pages: update\n\n**Requires [authorization](#auth)**\n\nUpdate a page.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nPUT https://www.googleapis.com/blogger/v3/blogs/blogId/pages/pageId\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|---------------------|\n| **Required parameters** |||\n| `blogId` | `string` | The ID of the Blog. |\n| `pageId` | `string` | The ID of the Page. |\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes ([read more about authentication and authorization](/blogger/docs/3.0/using#auth)).\n\n| Scope |\n|-------------------------------------------|\n| `https://www.googleapis.com/auth/blogger` |\n\n### Request body\n\nIn the request body, supply a [Pages resource](/blogger/docs/3.0/reference/pages#resource).\n\nResponse\n--------\n\nIf successful, this method returns a [Pages resource](/blogger/docs/3.0/reference/pages#resource) in the response body.\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response."]]