एल्बम को 'शेयर किया गया' के तौर पर मार्क करता है. साथ ही, यह भी तय करता है कि दूसरे लोग एल्बम को ऐक्सेस कर पाएंगे या नहीं. यह कार्रवाई सिर्फ़ उन एल्बम पर की जा सकती है जिन्हें डेवलपर ने एपीआई के ज़रिए बनाया है.
एचटीटीपी अनुरोध
POST https://photoslibrary.googleapis.com/v1/albums/{albumId}:share
[null,null,["आखिरी बार 2024-11-07 (UTC) को अपडेट किया गया."],[[["This method shares an existing album, making it accessible to others, but only for albums created via the API."],["The album is shared by sending a POST request to a specific URL, including the album's ID in the path."],["Request and response bodies utilize JSON format to provide and retrieve information about the shared album and its settings."],["The method requires specific authorization using the `https://www.googleapis.com/auth/photoslibrary.sharing` scope."],["This method will be deprecated starting March 31, 2025, and developers should consult the Photos APIs updates for alternatives."]]],["This document outlines the process for sharing an album via the Google Photos API, which will be deprecated after March 31, 2025. It details using a `POST` request to `https://photoslibrary.googleapis.com/v1/albums/{albumId}:share`, including the required `albumId` path parameter and a request body with `sharedAlbumOptions`. The API call needs the `https://www.googleapis.com/auth/photoslibrary.sharing` authorization scope. A successful response returns a `shareInfo` object. This only applies to albums the developer created.\n"]]