Bretos
Bretos
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
yeah post created new ext library
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
it works, thank you @Daniel !
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
and then we get here anyway
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
OMG one would think that after enough years one can write a simple api request on one's own
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
yeah I just assumed they have different names without checking that first, that's why I deleted my message after checking it 😄
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
let me try that on my instance
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
lol
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
but then...
curl -L "https://demo.immich.app/api/libraries/" \
-H 'Accept: application/json' \
-H "x-api-key: pTpFSM4gaVlFSZ2IVOTUDU6KgewmVEhR8tyI4wUjJs"
[{"id":"d7648f56-f5a3-4d41-a5f1-2b13e6c88ba9","ownerId":"aff6f1bc-c40e-40d4-a7f1-832762b8e407","name":"New External Library","createdAt":"2025-01-02T12:43:36.176Z","updatedAt":"2025-01-02T14:27:26.760Z","refreshedAt":"2025-01-02T14:27:26.755Z","assetCount":0,"importPaths":[],"exclusionPatterns":["**/@eaDir/**","**/._*"]},{"id":"9d02aa99-7175-4d25-b58f-2b28b3faa538","ownerId":"0c389df9-5476-4c01-acf9-1ccefb0448f7","name":"New External Library","createdAt":"2025-01-02T13:12:04.835Z","updatedAt":"2025-01-02T14:27:26.755Z","refreshedAt":"2025-01-02T14:27:26.752Z","assetCount":0,"importPaths":[],"exclusionPatterns":["**/@eaDir/**","**/._*"]}]
curl -L "https://demo.immich.app/api/libraries/" \
-H 'Accept: application/json' \
-H "x-api-key: pTpFSM4gaVlFSZ2IVOTUDU6KgewmVEhR8tyI4wUjJs"
[{"id":"d7648f56-f5a3-4d41-a5f1-2b13e6c88ba9","ownerId":"aff6f1bc-c40e-40d4-a7f1-832762b8e407","name":"New External Library","createdAt":"2025-01-02T12:43:36.176Z","updatedAt":"2025-01-02T14:27:26.760Z","refreshedAt":"2025-01-02T14:27:26.755Z","assetCount":0,"importPaths":[],"exclusionPatterns":["**/@eaDir/**","**/._*"]},{"id":"9d02aa99-7175-4d25-b58f-2b28b3faa538","ownerId":"0c389df9-5476-4c01-acf9-1ccefb0448f7","name":"New External Library","createdAt":"2025-01-02T13:12:04.835Z","updatedAt":"2025-01-02T14:27:26.755Z","refreshedAt":"2025-01-02T14:27:26.752Z","assetCount":0,"importPaths":[],"exclusionPatterns":["**/@eaDir/**","**/._*"]}]
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
# curl -X POST "https://demo.immich.app/api/libraries/" \
-H "x-api-key: pTpFSM4gaVlFSZ2IVOTUDU6KgewmVEhR8tyI4wUjJs" \
-H 'Accept: application/json'
{"message":["ownerId must be a UUID","ownerId should not be empty","ownerId must be a string"],"error":"Bad Request","statusCode":400,"correlationId":"x7bxmiwa"}
# curl -X POST "https://demo.immich.app/api/libraries/" \
-H "x-api-key: pTpFSM4gaVlFSZ2IVOTUDU6KgewmVEhR8tyI4wUjJs" \
-H 'Accept: application/json'
{"message":["ownerId must be a UUID","ownerId should not be empty","ownerId must be a string"],"error":"Bad Request","statusCode":400,"correlationId":"x7bxmiwa"}
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
I tried some random stuff after it didn't work like I expected, mainly from https://github.com/immich-app/immich/discussions/13081
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
1.123.0
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
Lol, we're doomed if I am
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
so how do I call directly to getAllLibraries?
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
because otherwise {"message":["ownerId must be a UUID","ownerId should not be empty","ownerId must be a string"],"error":"Bad Request","statusCode":400,"correlationId":"al7r8dpl"}#
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
when I POST at curl -X POST "https://immich.example.com/api/libraries/getAllLibraries" \ I get the response: {"message":"Cannot POST /api/libraries/getAllLibraries","error":"Not Found","statusCode":404,"correlationId":"0c92j5ys"}#
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
curl -X POST "https://immich.example.com/api/libraries" \
-H "x-api-key: admin_api_key" \
-H "Content-Type: application/json" \
-H 'Accept: application/json' \
-d '{"ownerId": "5db5eb69-da0a-43f3-9715-1795923f0cc6"}'

{"id":"7656512b-98d2-4d94-a976-d26c2fb6e504","ownerId":"5db5eb69-da0a-43f3-9715-1795923f0cc6","name":"New External Library","createdAt":"2025-01-02T15:35:21.397Z","updatedAt":"2025-01-02T15:35:21.397Z","refreshedAt":null,"assetCount":0,"importPaths":[],"exclusionPatterns":["**/@eaDir/**","**/._*"]}#
curl -X POST "https://immich.example.com/api/libraries" \
-H "x-api-key: admin_api_key" \
-H "Content-Type: application/json" \
-H 'Accept: application/json' \
-d '{"ownerId": "5db5eb69-da0a-43f3-9715-1795923f0cc6"}'

{"id":"7656512b-98d2-4d94-a976-d26c2fb6e504","ownerId":"5db5eb69-da0a-43f3-9715-1795923f0cc6","name":"New External Library","createdAt":"2025-01-02T15:35:21.397Z","updatedAt":"2025-01-02T15:35:21.397Z","refreshedAt":null,"assetCount":0,"importPaths":[],"exclusionPatterns":["**/@eaDir/**","**/._*"]}#
still the same issue, creates new library and doesn't list the existing one.
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
admin api = api created via "setting" of an user that is an admin?
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
I want to trigger scan manually after a specific sync operation is completed, as inotify is funky over NFS
53 replies
IImmich
Created by Bretos on 1/2/2025 in #help-desk-support
API request via cURL
OK, I think I've lost my head somewhere after last year and before current one. What's the correcth URL for getAllLibraries then? does API require any additional arguments, like direction?
53 replies
IImmich
Created by Bretos on 12/31/2024 in #help-desk-support
Immich upload thorugh CloudFlare - max_upload_size limit
Thank you! I'll go through current discussion after New Year's season
12 replies