Token wird nicht abgerufen

Es gibt eine Fehlermeldung beim Abruf des Token, kann einer Helfen?

Bitte wenden Sie sich einmal an Shopware.

2022-05-16 11:30:54.740 DEBUG 542 — [ol-2-thread-826] .a.u.a.RequestResponseLoggingInterceptor : Status code : 500 INTERNAL_SERVER_ERROR
2022-05-16 11:30:54.740 DEBUG 542 — [ol-2-thread-826] .a.u.a.RequestResponseLoggingInterceptor : Status text : Internal Server Error
2022-05-16 11:30:54.740 DEBUG 542 — [ol-2-thread-826] .a.u.a.RequestResponseLoggingInterceptor : Headers : [Date:„Mon, 16 May 2022 09:30:54 GMT“, Server:„Apache/2.4.52 (Ubuntu)“, Vary:„Authorization“, Access-Control-Allow-Origin:"*", Access-Control-Allow-Methods:„GET,POST,PUT,PATCH,DELETE“, Access-Control-Allow-Headers:„Content-Type,Authorization,sw-context-token,sw-access-key,sw-language-id,sw-version-id,sw-inheritance,fail-on-error,indexing-behavior,single-operation,sw-include-seo-urls“, Access-Control-Expose-Headers:„Content-Type,Authorization,sw-context-token,sw-access-key,sw-language-id,sw-version-id,sw-inheritance,fail-on-error,indexing-behavior,single-operation,sw-include-seo-urls“, x-frame-options:„deny“, Cache-Control:„no-cache, private“, Content-Length:„580“, Connection:„close“, Content-Type:„application/json“]
2022-05-16 11:30:54.741 DEBUG 542 — [ol-2-thread-826] .a.u.a.RequestResponseLoggingInterceptor : Response body: {„errors“:[{„status“:„500“,„code“:„FRAMEWORK__WRITE_TYPE_INTEND_ERROR“,„title“:„Internal Server Error“,„detail“:„Expected command for [\u0022product](file://u0022product)
u0022 to be [\u0022Shopware\\Core\\Framework\\DataAbstractionLayer\\Write\\Command\\UpdateCommand](file://u0022Shopware/Core/Framework/DataAbstractionLayer/Write/Command/UpdateCommand)
u0022. (Got: Shopware\\Core\\Framework\\DataAbstractionLayer\\Write\\Command\\InsertCommand)“,„meta“:{„parameters“:{„definition“:„product“,„expectedClass“:„Shopware\\Core\\Framework\\DataAbstractionLayer\\Write\\Command\\UpdateCommand“,„actualClass“:„Shopware\\Core\\Framework\\DataAbstractionLayer\\Write\\Command\\InsertCommand“ }}} ]}
2022-05-16 11:30:54.741 DEBUG 542 — [ol-2-thread-826] .a.u.a.RequestResponseLoggingInterceptor : =======================response end=================================================

Nach dem überfliegen würde ich tippen, dass ein Entiy geschrieben werden soll, das schon existiert. Daher ist das UpdateCommand notwenig.

Ich habe folgende Nachricht dazu bekommen

Ja richtig, die Entität soll updated werden:

wir senden mittels PATCH folgenden Body:

{„stock“:2,„deliveryTimeId“:„2638dbedc6f5482195d541ad0b214c1b“,„maxPurchase“:2}

an:

https://dekoparadies24.de/api/product/65bde88dabd44806a8b0fdb1a36e6128

Bitte um Weitereleitung und Info

Die Fehlermeldung sagt irgendwie anderes. Mehr als auf die Dokumentation zu verweisen bleibt mir leider nicht … Writing entities | Admin API