Skip to main content
PUT
/
products
cUrl
curl --location --request PUT 'https://api.catalogix.ai/v1/products?store_uuid=67762d4ce590324df813bd8c' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '[
  {
    "product_code": "CI001",
    "Category": "Shirts",
    "Department": "Men",
    "Status": "inactive"
  }
]'
import requests
import json

url = "https://api.catalogix.ai/v1/products?store_uuid=67762d4ce590324df813bd8c"

payload = json.dumps([
{
"product_code": "CI001",
"Category": "Shirts",
"Department": "Men",
"Status": "inactive"
}
])
headers = {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json'
}

response = requests.request("PUT", url, headers=headers, data=payload)

print(response.text)
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer YOUR_TOKEN");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify([
{
"product_code": "CI001",
"Category": "Shirts",
"Department": "Men",
"Status": "inactive"
}
]);

var requestOptions = {
method: 'PUT',
headers: myHeaders,
body: raw,
redirect: 'follow'
};

fetch("https://api.catalogix.ai/v1/products?store_uuid=67762d4ce590324df813bd8c", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.catalogix.ai/v1/products?store_uuid=67762d4ce590324df813bd8c',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_POSTFIELDS =>'[
{
"product_code": "CI001",
"Category": "Shirts",
"Department": "Men",
"Status": "inactive"
}
]',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_TOKEN',
'Content-Type: application/json'
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
package main

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

func main() {

url := "https://api.catalogix.ai/v1/products?store_uuid=67762d4ce590324df813bd8c"
method := "PUT"

payload := strings.NewReader(`[
{
"product_code": "CI001",
"Category": "Shirts",
"Department": "Men",
"Status": "inactive"
}
]`)

client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)

if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")

res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()

body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.put("https://api.catalogix.ai/v1/products?store_uuid=67762d4ce590324df813bd8c")
.header("Authorization", "Bearer YOUR_TOKEN")
.header("Content-Type", "application/json")
.body("[\n {\n \"product_code\": \"CI001\",\n \"Category\": \"Shirts\",\n \"Department\": \"Men\",\n \"Status\": \"inactive\"\n }\n]")
.asString();
require 'uri'
require 'net/http'

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

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

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"product_code\": \"CI001\",\n \"status\": \"inactive\"\n }\n]"

response = http.request(request)
puts response.read_body
{
  "status": {
    "code": 0,
    "message": "success",
    "request_id": "8c8b2b7e-23d7-4c2a-91b0-2a7c4dfbb312"
  },
  "data": {
    "store_uuid": "67762d4ce590324df813bd8c",
    "failed_products": {
      "SKU003": {
        "Color": "invalid value"
      }
    },
    "updated_skus": [
      "CI001"
    ],
    "unavailable_skus": [
      "CI00000000"
    ]
  }
}
{
"detail": "<string>",
"status": "error"
}
{
"status": {
"code": -1,
"message": "Unauthorized – invalid or missing Bearer token"
}
}
{
"detail": "<string>",
"status": "error"
}
{
"detail": "<string>",
"status": "error"
}
{
"detail": [
{
"loc": [
"body",
""
],
"msg": "Field Required",
"type": "missing"
}
]
}
{
"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. If not provided, one is generated automatically

Query Parameters

store_uuid
string
required

Body

application/json
product_code
string
required

Unique identifier for the product (SKU code)

Example:

"CI001"

status
enum<string>
Available options:
active,
new,
problem,
inactive,
draft,
under review
Example:

"inactive"

Response

Update successful

status
StatusModel · object
required

Status of the operation

data
UpdateDataModel · object
required

Data containing updated and unavailable SKUs