একটি স্থান তৈরি করে। একটি নামযুক্ত স্থান, বা Import mode একটি গ্রুপ চ্যাট তৈরি করতে ব্যবহার করা যেতে পারে৷ একটি উদাহরণের জন্য, একটি স্থান তৈরি করুন দেখুন।
একটি অ্যাপ হিসেবে প্রমাণীকরণ করার সময়, অনুরোধে space.customer ক্ষেত্রটি অবশ্যই সেট করতে হবে।
স্পেস মেম্বারশিপ তৈরির উপর নির্ভর করে যে স্পেসটি Import mode তৈরি করা হয়েছে কিনা:
আমদানি মোড: কোনো সদস্য তৈরি করা হয় না।
অন্যান্য সমস্ত মোড: কলিং ব্যবহারকারীকে সদস্য হিসাবে যুক্ত করা হয়। এটি হল:
অ্যাপ প্রমাণীকরণ ব্যবহার করার সময় অ্যাপ নিজেই।
ব্যবহারকারী প্রমাণীকরণ ব্যবহার করার সময় মানব ব্যবহারকারী।
যদি আপনি একটি স্পেস তৈরি করার সময় ALREADY_EXISTS ত্রুটি বার্তাটি পান, একটি ভিন্ন displayName চেষ্টা করুন। Google Workspace সংস্থার মধ্যে আগে থেকেই এই ডিসপ্লে নাম ব্যবহার করা হতে পারে।
ঐচ্ছিক। এই অনুরোধের জন্য একটি অনন্য শনাক্তকারী। একটি র্যান্ডম UUID সুপারিশ করা হয়. একটি বিদ্যমান অনুরোধ আইডি নির্দিষ্ট করা একটি নতুন স্থান তৈরি করার পরিবর্তে সেই আইডি দিয়ে তৈরি স্থান ফেরত দেয়। একটি ভিন্ন প্রমাণীকৃত ব্যবহারকারীর সাথে একই চ্যাট অ্যাপ থেকে একটি বিদ্যমান অনুরোধ আইডি নির্দিষ্ট করা একটি ত্রুটি ফেরত দেয়।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-02-27 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Creates a space in Google Chat, which can be a named space or a group chat, supporting app and user authentication."],["When using app authentication, the space.customer field is required and no members are added in Import mode; otherwise, the calling user becomes a member."],["Uses the `POST https://chat.googleapis.com/v1/spaces` HTTP request to create a space and requires specific OAuth scopes for authorization."],["The request body should contain a Space object and the response, if successful, will contain the newly created Space object."],["If the displayName already exists, an `ALREADY_EXISTS` error will be returned, suggesting to try a different displayName."]]],["This content outlines how to create a space using the Chat API. Key actions include sending a `POST` request to `https://chat.googleapis.com/v1/spaces`. The request may include a unique `requestId` and must contain a `Space` instance in the body. Authentication can be app-based or user-based, requiring specific OAuth scopes. Space membership varies by import mode; no members in import mode, otherwise the caller is added. Response will contain new space information.\n"]]