Create an Image

Create New Image

POST {{URL}}/api/v1/gallery

This endpoint allows you to create a new image.

Headers

Name
Type
Description

Authentication

string

Authentication token of the admin user.

Request Body

Name
Type
Description

photoUrl

string

The Image to be uploaded.

imageName

string

The name of the image being uploaded.

tag

string

The tag associated with the image.

{
    "status": "success",
    "message": "Image created successfully",
    "results": 1,
    "data": {
        "photoUrl": [],
        "_id": "60dc6069a7dd091b1458eaed",
        "imageName": "Kitchen Utensils",
        "tag": "Home Furniture",
        "__v": 0
    }
}

Last updated

Was this helpful?