Skip to main content
POST
/
api
/
public
/
product
/
delete
/
{promptBlockId}
Delete products
curl --request POST \
  --url https://api.vambe.me/api/public/product/delete/{promptBlockId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
[
  {
    "external_id": "<string>"
  }
]
'
const options = {
  method: 'POST',
  headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify([{external_id: '<string>'}])
};

fetch('https://api.vambe.me/api/public/product/delete/{promptBlockId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
import requests

url = "https://api.vambe.me/api/public/product/delete/{promptBlockId}"

payload = [{ "external_id": "<string>" }]
headers = {
    "x-api-key": "<x-api-key>",
    "Content-Type": "application/json"
}

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

print(response.text)

Headers

x-api-key
string
required

API key needed to authorize the request

Path Parameters

promptBlockId
string
required

The prompt block ID from which to delete the products

Body

application/json

The payload with external IDs of products to delete

Minimum array length: 1
external_id
string
required

External ID of product to delete

Minimum string length: 1

Response

Products deleted successfully.