# Upload an image to an ad **POST /advertising/v1.0/ads/{adId}/images/** Endpoint for uploading images that will be attached to advertisement. The "Content-Type" header must be "multipart/form-data". The "Content-Length" header must contain the file size in bytes. Allowed formats are `jpeg`, `gif` and `png`. ## Servers - http://apis.public-staging.reas.cz: http://apis.public-staging.reas.cz () ## Authentication methods - Token ## Parameters ### Path parameters - **adId** (string) Id of an advertisement. It is either id that was provided in the response of the insert endpoint or it can be **thirdPartyId**, if it has been provided in the request body of the advertisement **insert** endpoint. ### Query parameters - **thirdPartyId** (string) Optional custom id that can later be used instead of normal id in `insert`, `update`, `delete` etc. endpoints - **order** (number(float)) When displayed publicly, images will be sorted by the "order" value in ascending order ### Body: multipart/form-data (object) Allowed formats are `jpeg`, `gif` and `png`. - **image** (string(binary)) ## Responses ### 200 Image successfully uploaded #### Body: application/json (object) - **success** (boolean) - **data** (object) ### 404 Related advertisement does not exist. [Powered by Bump.sh](https://bump.sh)