Method: users.threads.modify
থ্রেডে প্রয়োগ করা লেবেল পরিবর্তন করে। এটি থ্রেডের সমস্ত বার্তার ক্ষেত্রে প্রযোজ্য।
HTTP অনুরোধ
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/threads/{id}/modify
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
userId | string ব্যবহারকারীর ইমেইল ঠিকানা. বিশেষ মান me প্রমাণীকৃত ব্যবহারকারী নির্দেশ করতে ব্যবহার করা যেতে পারে। |
id | string থ্রেডের আইডি পরিবর্তন করতে হবে। |
শরীরের অনুরোধ
অনুরোধের অংশে নিম্নলিখিত কাঠামো সহ ডেটা রয়েছে:
JSON প্রতিনিধিত্ব |
---|
{
"addLabelIds": [
string
],
"removeLabelIds": [
string
]
} |
ক্ষেত্র |
---|
addLabelIds[] | string এই থ্রেডে যোগ করার জন্য লেবেলের আইডিগুলির একটি তালিকা। আপনি প্রতিটি আপডেটের সাথে 100টি পর্যন্ত লেবেল যোগ করতে পারেন। |
removeLabelIds[] | string এই থ্রেড থেকে মুছে ফেলার জন্য লেবেলগুলির আইডিগুলির একটি তালিকা৷ আপনি প্রতিটি আপডেটের সাথে 100টি পর্যন্ত লেবেল সরাতে পারেন। |
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে Thread
একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://mail.google.com/
-
https://www.googleapis.com/auth/gmail.modify
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-14 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-14 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This method modifies the labels applied to all messages within a specific thread using the thread ID and user ID."],["The request body allows adding or removing labels by specifying their IDs, with a limit of 100 labels per update."],["Upon successful execution, the API returns a detailed representation of the updated thread, including its properties and metadata."],["Authorization requires specific OAuth scopes, such as 'https://mail.google.com/' or 'https://www.googleapis.com/auth/gmail.modify', to grant access and permissions."]]],["This describes modifying thread labels in Gmail via an HTTP POST request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/threads/{id}/modify`. The request requires `userId` (email or `me`) and `id` (thread ID) path parameters. The request body, in JSON format, includes arrays `addLabelIds` and `removeLabelIds` for adding/removing label IDs (up to 100 each). A successful response returns a Thread instance, and authorization requires specific OAuth scopes.\n"]]