Method: subscriptions.reactivate

เปิดใช้งานการสมัครใช้บริการ Google Workspace ที่ถูกระงับอีกครั้ง

เมธอดนี้จะรีเซ็ตฟิลด์ State ของการสมัครใช้บริการเป็น ACTIVE คุณต้องแก้ไขข้อผิดพลาดที่ทำให้การสมัครใช้บริการถูกระงับก่อนที่จะใช้เมธอดนี้ เมธอดนี้จะละเว้นหรือปฏิเสธการสมัครใช้บริการที่ไม่ได้อยู่ในสถานะถูกระงับในปัจจุบัน ดูวิธีใช้เมธอดนี้ได้ที่ เปิดใช้งานการสมัครใช้บริการ Google Workspace อีกครั้ง

สำหรับการสมัครใช้บริการในทรัพยากรเป้าหมายของ Chat คุณสามารถเปิดใช้งานการสมัครใช้บริการอีกครั้งได้ดังนี้

คำขอ HTTP

POST https://workspaceevents.googleapis.com/v1/{name=subscriptions/*}:reactivate

URL ใช้ไวยากรณ์การแปลงรหัส gRPC

พารามิเตอร์เส้นทาง

พารามิเตอร์
name

string

ต้องระบุ ชื่อทรัพยากรของการสมัครใช้บริการ

รูปแบบ: subscriptions/{subscription}

เนื้อหาคำขอ

เนื้อหาของคำขอต้องว่างเปล่า

เนื้อหาการตอบกลับ

หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Operation

  • ฟิลด์ metadata จะมีอาร์เรย์ว่างเปล่า
  • ฟิลด์ response จะมีอินสแตนซ์ Subscription ที่อัปเดตแล้ว

ขอบเขตการให้สิทธิ์

ต้องใช้ขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.memberships
  • https://www.googleapis.com/auth/chat.app.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.messages.readonly
  • https://www.googleapis.com/auth/chat.app.spaces
  • https://www.googleapis.com/auth/chat.app.spaces.readonly
  • https://www.googleapis.com/auth/meetings.space.created
  • https://www.googleapis.com/auth/meetings.space.readonly
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.metadata
  • https://www.googleapis.com/auth/drive.metadata.readonly
  • https://www.googleapis.com/auth/drive.readonly

ดูข้อมูลเพิ่มเติมได้ที่คู่มือการให้สิทธิ์