## 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.

### Parameters

- **AssetID**  
  `int32`  
  required  
  Defaults to null

- **file**  
  `string`  
  File path to the image that will be uploaded.

# Responses

### `200`

```json
{
  
}
```

### `400`

```shell
curl -X POST -H "X-Adzerk-ApiKey: $API_KEY" "https://api.kevel.co/v1/asset/12345/upload" -F "file=@helloworld.gif"
```
