Skip to main content
DELETE
/
assets
cUrl
curl --location --request DELETE 'https://api.catalogix.ai/v1/assets' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '[\n  {\n    "store_uuid": "699ec31355208b213e56059a",\n    "channel": "SMP",\n    "parent_code": "SKU001",\n    "asset_id": ["id1", "id2"]\n  }\n]'
import requests
import json

url = "https://api.catalogix.ai/v1/assets"

payload = json.dumps([
{
"store_uuid": "699ec31355208b213e56059a",
"channel": "SMP",
"parent_code": "SKU001",
"asset_id": ["id1", "id2"]
}
])
headers = {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json'
}

response = requests.request("DELETE", url, headers=headers, data=payload)
print(response.text)
const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
store_uuid: '699ec31355208b213e56059a',
channel: 'SMP',
parent_code: 'SKU001',
asset_id: ['id1', 'id2']
}
])
};

fetch('https://api.catalogix.ai/v1/assets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.catalogix.ai/v1/assets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
[
'store_uuid' => '699ec31355208b213e56059a',
'channel' => 'SMP',
'parent_code' => 'SKU001',
'asset_id' => [
'id1',
'id2'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "https://api.catalogix.ai/v1/assets"

payload := strings.NewReader("[\n {\n \"store_uuid\": \"699ec31355208b213e56059a\",\n \"channel\": \"SMP\",\n \"parent_code\": \"SKU001\",\n \"asset_id\": [\n \"id1\",\n \"id2\"\n ]\n }\n]")

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

req.Header.Add("Authorization", "Bearer <token>")
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.delete("https://api.catalogix.ai/v1/assets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"store_uuid\": \"699ec31355208b213e56059a\",\n \"channel\": \"SMP\",\n \"parent_code\": \"SKU001\",\n \"asset_id\": [\n \"id1\",\n \"id2\"\n ]\n }\n]")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.catalogix.ai/v1/assets")

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

request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"store_uuid\": \"699ec31355208b213e56059a\",\n \"channel\": \"SMP\",\n \"parent_code\": \"SKU001\",\n \"asset_id\": [\n \"id1\",\n \"id2\"\n ]\n }\n]"

response = http.request(request)
puts response.read_body
{
  "status": {
    "code": 0,
    "message": "SUCCESS",
    "request_id": "8c8b2b7e-23d7-4c2a-91b0-2a7c4dfbb312"
  },
  "data": {
    "deleted_count": 2,
    "failed": 0,
    "error_info": [
      {}
    ]
  }
}
{
"detail": "<string>",
"status": "error"
}
{
"status": {
"code": -1,
"message": "Unauthorized – invalid or missing Bearer token"
}
}
{
"status": {
"code": -1,
"message": "Internal server error. Please contact support@catalogix.ai"
}
}
{
"detail": "<string>",
"status": "error"
}

Authorizations

Authorization
string
header
required

Pass the API token as a Bearer token in the Authorization header.

Headers

X-Request-Id
string

Optional trace ID

Body

application/json
store_uuid
string
required
Example:

"699ec31355208b213e56059a"

channel
string
Example:

"SMP"

parent_code
string
Example:

"SKU001"

asset_id
string[]
Example:
["id1", "id2"]

Response

Assets deleted

status
object
data
object