Belirtilen komut dosyası projesinin içeriğini günceller. Bu içerik HEAD sürümü olarak depolanır ve komut dosyası tetikleyici olarak, komut dosyası düzenleyicide, eklenti önizleme modunda ya da web uygulaması veya geliştirme modunda Apps Komut Dosyası API'si olarak yürütüldüğünde kullanılır. Bu işlem, projedeki mevcut tüm dosyaları temizler.
HTTP isteği
PUT https://script.googleapis.com/v1/projects/{scriptId}/content
Komut dosyası proje dosyalarının listesi. Dosyalardan biri bir komut dosyası manifestidir; "appsscript" olarak adlandırılmalı, JSON türünde olmalı ve projenin manifest yapılandırmalarını içermelidir.
Yanıt gövdesi
Başarılıysa yanıt metni, Content öğesinin bir örneğini içerir.
Yetkilendirme Kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/script.projects
Daha fazla bilgi için OAuth 2.0 Overview (OAuth 2.0'a Genel Bakış) sayfasına göz atın.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\u003cp\u003eUpdates the content of a specified Apps Script project, replacing all existing files.\u003c/p\u003e\n"],["\u003cp\u003eRequires a \u003ccode\u003ePUT\u003c/code\u003e request to the specified endpoint with the script project's Drive ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a list of files, including a JSON manifest named "appsscript".\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns the updated project content.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/script.projects\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,[]]