Zum Inhalt springen
scango.ch
Deutsch
Esc
navigierenöffnen⌘JVorschau

Upload product image

Upload a product image (multipart field file) and set imageUrl. Replaces any previous image. Requires a Write key. Max 10MB. Allowed types: jpeg, png, webp, gif.

POST/products/{productId}/image
Autorisierung
AutorisierungBearer-Token (API key) · headererforderlich
Organisations-API-Key.
Pfadparameter
productIdstringerforderlich
Request-Body
erforderlichmultipart/form-data
filestringerforderlich
Image file (jpeg, png, webp, gif). Max 10MB.
Antworten
200Uploaded
dataobjecterforderlich
Eigenschaften anzeigen
urlstringerforderlich
imageUrlstringerforderlich
400Bad request
statusCodeintegererforderlich
HTTP-Statuscode
messagestringerforderlich
Lesbare Fehlermeldung
timestampstring<date-time>erforderlich
pathstringerforderlich
Request-Pfad
403Unauthorized
statusCodeintegererforderlich
HTTP-Statuscode
messagestringerforderlich
Lesbare Fehlermeldung
timestampstring<date-time>erforderlich
pathstringerforderlich
Request-Pfad
404Not found
statusCodeintegererforderlich
HTTP-Statuscode
messagestringerforderlich
Lesbare Fehlermeldung
timestampstring<date-time>erforderlich
pathstringerforderlich
Request-Pfad
413File too large
statusCodeintegererforderlich
HTTP-Statuscode
messagestringerforderlich
Lesbare Fehlermeldung
timestampstring<date-time>erforderlich
pathstringerforderlich
Request-Pfad
Anfrage
curl -X POST "https://dashboard.scango.ch/api/v1/products/string/image" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: multipart/form-data" \
  -d '{
  "file": "string"
}'
Antwort
{
  "data": {
    "url": "string",
    "imageUrl": "string"
  }
}