Upload Image
Upload Image
PATCH {{URL}}/api/v1/gallery/:image_id/upload
This endpoint allows you to upload Image to a specific ImageName in the gallery.
Path Parameters
Name
Type
Description
image_id
string
The ID of the image.
Headers
Name
Type
Description
Authentication
string
Authentication token of the admin user.
Request Body
Name
Type
Description
image
string
Image to be uploaded.
{
"status": "success",
"message": "Gallery photo has been successfully uploaded",
"data": {
"photoUrl": [
"https://auragallery.s3.amazonaws.com/gallery/phoenix-han-ZS_RypKo9sk-unsplash-1625055409817.jpg"
],
"_id": "60dc6069a7dd091b1458eaed",
"imageName": "Kitchen Utensils",
"tag": "Home Furniture"
}
}Last updated
Was this helpful?