Skip to main content
POST
/
v1
/
partner
/
products
/
{scraped_product_id}
/
request-edit
Request an edit to a claimed product
curl --request POST \
  --url http://localhost:3000/v1/partner/products/{scraped_product_id}/request-edit \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "image_url": "<string>",
  "image_urls": [
    "<string>"
  ],
  "selling_price": 1,
  "barcode": "<string>",
  "size": "<string>"
}
'
import requests

url = "http://localhost:3000/v1/partner/products/{scraped_product_id}/request-edit"

payload = {
"name": "<string>",
"description": "<string>",
"image_url": "<string>",
"image_urls": ["<string>"],
"selling_price": 1,
"barcode": "<string>",
"size": "<string>"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
image_url: '<string>',
image_urls: ['<string>'],
selling_price: 1,
barcode: '<string>',
size: '<string>'
})
};

fetch('http://localhost:3000/v1/partner/products/{scraped_product_id}/request-edit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v1/partner/products/{scraped_product_id}/request-edit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'image_url' => '<string>',
'image_urls' => [
'<string>'
],
'selling_price' => 1,
'barcode' => '<string>',
'size' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "http://localhost:3000/v1/partner/products/{scraped_product_id}/request-edit"

payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"image_urls\": [\n \"<string>\"\n ],\n \"selling_price\": 1,\n \"barcode\": \"<string>\",\n \"size\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("http://localhost:3000/v1/partner/products/{scraped_product_id}/request-edit")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"image_urls\": [\n \"<string>\"\n ],\n \"selling_price\": 1,\n \"barcode\": \"<string>\",\n \"size\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("http://localhost:3000/v1/partner/products/{scraped_product_id}/request-edit")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"image_url\": \"<string>\",\n \"image_urls\": [\n \"<string>\"\n ],\n \"selling_price\": 1,\n \"barcode\": \"<string>\",\n \"size\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "request": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "partner_brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "scraped_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "sellable_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "proposed_changes": {},
    "proposed_wholesale_price": 123,
    "proposed_selling_price": 123,
    "proposed_commission_rate": 123,
    "rejection_reason": "<string>",
    "admin_notes": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}

Path Parameters

scraped_product_id
string<uuid>
required

Body

application/json
name
string
Minimum string length: 1
description
string
image_url
string<uri>
image_urls
string<uri>[]
Maximum array length: 7
selling_price
number
Required range: x > 0
barcode
string
size
string
temperature_zone
enum<string>
Available options:
ambient,
refrigerated,
frozen

Response

Edit request created

request
object
required