آلبومی که قبلاً به اشتراک گذاشته شده است را به عنوان خصوصی علامت گذاری می کند. این به این معنی است که آلبوم دیگر به اشتراک گذاشته نمی شود و همه افراد غیر مالک دسترسی به آلبوم را از دست خواهند داد. تمام محتوای غیر مالک از آلبوم حذف خواهد شد. اگر فردی غیر مالک قبلاً آلبوم را به کتابخانه خود اضافه کرده باشد، همه عکسها را در کتابخانه خود نگه میدارد. این عمل فقط در آلبوم هایی قابل انجام است که توسط توسعه دهنده از طریق API ایجاد شده اند.
درخواست HTTP
POST https://photoslibrary.googleapis.com/v1/albums/{albumId}:unshare
تاریخ آخرین بهروزرسانی 2025-01-07 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-07 بهوقت ساعت هماهنگ جهانی."],[[["Makes a shared album private, removing sharing access and all non-owner content, effective March 31, 2025."],["Non-owners who added the album to their library will keep any photos already in their library."],["Only applicable to albums created by the developer using the API, requiring the album ID in the request."],["Requires authorization with the `https://www.googleapis.com/auth/photoslibrary.sharing` scope."],["The request body should be empty, and a successful operation results in an empty response body."]]],["The `unshare` method revokes sharing access to a specified album, making it private and removing non-owner content. It can only be used on albums created by the API, identified by a required `albumId` in the path. The method is executed via a POST HTTP request to the `unshare` endpoint. The request body is empty, and a successful response also returns an empty body. This action requires the `photoslibrary.sharing` authorization scope but will cease functioning from March 31, 2025.\n"]]