Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Function: setArticleImages
Set Article Files (free download & Paid Downloads) - requires min. Api Version 6.0.14
Request
userxsd:string
passxsd:string
product_modelxsd:string
product_external_idxsd:string
filestns:productFiles

Response
resultxsd:boolean
messagexsd:string
{
    "result":"",
    "message":""
}

Beispiel 1 - kostenloser Download (z.B. Produkthandbuch)

Automatischer Download von URL z.b. von Ihrem PIM bei übermittlung einer URL in file_url - wird bei upload über die API muss der inhalt in base64 codiert in "file" übertragen werden.

{
    "function": "setArticleFiles",
    "paras": {
        "user": "{{api_user}}",
        "pass": "{{api_password}}",
        "products_model":"EAN112233445",
        "external_id":"",
        "files": [
            {
                "file_name": "Handbuch_Artikel_EAN_EAN112233445.pdf",
                "file_url": "https://pim.****.com/produkte/Handbuch_Artikel_EAN_EAN112233445.pdf",
                "file_type":"free",
                "file_max_downloads":"0",
                "file_max_download_days":"0",
                "media_name": {
                    "de": "Name DE",
                    "en": "Name EN"
                },
                "media_description": {
                    "de": "Beschreibung DE",
                    "en": "Description EN"
                }
            }
        ]
    }
}
  • No labels