Upload Asset Image

A direct link to the image will be available in the ContentURL of the asset after successfully uploading a file. Uploaded files cannot be overwritten.

📘

Note

You will need to attach the image as a form submission to the form-field file. In curl, this is prefixed with an @ sign, followed by the path to the file.

API Syntax

If you choose to upload an image to Kevel using the Upload Asset Image API call, you need to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

POST https://api.kevel.co/v1/asset/{AssetID}/upload

Where:

  • POST - the type of API request being made.
  • https://api.kevel.co - the URL for the request.
  • v1 - the API version.
  • asset - the API endpoint being called.
  • AssetID - the ID of the asset.
  • upload - the action you wish to take.
Language