Shared links

Add assets to a shared link

Changed on

Add assets to a specific shared link by its ID. This endpoint is only relevant for shared link of type individual.

put/shared-links/{id}/assets

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/shared-links/{id}/assets
  • Auth: one of:
    • HTTP bearer
    • API key in cookie immich_access_token
    • API key in header x-api-key

Path parameters

idstring uuid required

Request body

assetIdsstring[] required

Asset IDs

Response

assetIdstring uuid required

Asset ID

error'duplicate' | 'no_permission' | 'not_found'

Error reason if failed

successboolean required

Whether operation succeeded

Changes

    • info

      the / response's property pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ was added for the status