mirror of
https://github.com/immich-app/immich.git
synced 2025-12-30 09:15:28 +03:00
chore: deprecate (#21791)
This commit is contained in:
@@ -2504,7 +2504,8 @@
|
||||
"description": "This endpoint requires the `asset.download` permission."
|
||||
},
|
||||
"put": {
|
||||
"description": "Replace the asset with new file, without changing its id. This endpoint requires the `asset.replace` permission.",
|
||||
"deprecated": true,
|
||||
"description": "This property was deprecated in v1.142.0. Replace the asset with new file, without changing its id. This endpoint requires the `asset.replace` permission.",
|
||||
"operationId": "replaceAsset",
|
||||
"parameters": [
|
||||
{
|
||||
@@ -2566,12 +2567,14 @@
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"summary": "replaceAsset",
|
||||
"summary": "Replace the asset with new file, without changing its id",
|
||||
"tags": [
|
||||
"Assets"
|
||||
"Assets",
|
||||
"Deprecated"
|
||||
],
|
||||
"x-immich-lifecycle": {
|
||||
"addedAt": "v1.106.0"
|
||||
"addedAt": "v1.106.0",
|
||||
"deprecatedAt": "v1.142.0"
|
||||
},
|
||||
"x-immich-permission": "asset.replace"
|
||||
}
|
||||
|
||||
@@ -2368,7 +2368,7 @@ export function downloadAsset({ id, key, slug }: {
|
||||
}));
|
||||
}
|
||||
/**
|
||||
* replaceAsset
|
||||
* Replace the asset with new file, without changing its id
|
||||
*/
|
||||
export function replaceAsset({ id, key, slug, assetMediaReplaceDto }: {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user