The Update Hero Banners API updates existing hero banners (web and mobile) for a given banner ID. It requires valid data and a valid banner ID.Endpoint
Path Parameter
Name
Type
Required
Description
id
string
Yes
The ID of the banner to update (MongoDB ObjectId).
Request Body
Name
Type
Required
Description
webBanners
array
Yes
List of web hero banner image URLs (strings).
mobileBanners
array
Yes
List of mobile hero banner image URLs (strings).
vendorId
string
Yes
The vendor's unique MongoDB ObjectId.
Response
Status Code
Description
200
Hero banner updated successfully.
400
Validation error or bad request.
403
Forbidden - user does not have permission to perform this action.
404
Not Found - banner with provided ID not found.
500
Internal Server Error.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.