Edit Gig Products

This API endpoint allows you to edit an existing product of a gig. It requires authentication via user_id and gig_id, and the product_id of the product to be edited. The API also accepts optional parameters such as product_name, product_description, product_price, and product_image[] to modify the existing product.

Endpoint #

The Voomerr Edit Gig Products endpoint is POST https://admin.voomerr.com/api/edit_gig_product.php

Request Parameters #

Parameter Required Description
user_id Yes The ID of the user who is editing the gig product.
gig_id Yes The ID of the gig whose product is being edited.
product_id Yes The ID of the product that needs to be edited.
product_name No The new name of the product. If not specified, the product name remains unchanged.
product_description No The new description of the product. If not specified, the product description remains unchanged.
product_price No The new price of the product. If not specified, the product price remains unchanged.
product_image[] No An array of new images for the product. If not specified, the product images remain unchanged.

Response Parameters #

Parameter Description
success A boolean indicating whether the API request was successful or not.
message A message indicating the status of the API request.
product An object representing the edited product.

Example Request #

json
{
"user_id": "1234",
"gig_id": "5678",
"product_id": "9012",
"product_name": "New Product Name",
"product_description": "New Product Description",
"product_price": "25.00",
"product_image": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]
}

Example Response #

json
{
"success": true,
"message": "Product updated successfully.",
"product": {
"product_id": "123456",
"product_name": "Updated Product Name",
"product_description": "This is the updated product description.",
"product_price": "50.00",
"product_image": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]
}
}

Powered by BetterDocs