Archive
curl --request PATCH \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archiveimport requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive', 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://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"status": "draft",
"itemType": "default",
"position": 123,
"categoryId": "<string>",
"productTypeId": "<string>",
"code": "<string>",
"categoryName": "<string>",
"primaryImageUrl": "<string>",
"columnsAttributes": {},
"primaryItemId": "<string>",
"primaryItemName": "<string>",
"primaryItemVersion": 123,
"primaryItemColumnsAttributes": {},
"primaryFamilySourceId": "<string>",
"primarySourceContactCompany": {
"id": "<string>",
"name": "<string>",
"domain": "<string>",
"available": true,
"identity": {
"globalCompany": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"version": 123,
"suggestion": {
"candidates": [
{
"company": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"nameMatch": true,
"matchingHosts": [
"<string>"
],
"typeMatch": true
}
],
"expectedVersion": 123,
"evidenceFingerprint": "<string>"
}
}
},
"primarySourceContactOffice": {
"id": "<string>",
"name": "<string>",
"address": "<string>",
"currency": "USD",
"available": true
},
"primaryFamilySourceVersion": 123,
"primarySourceColumnsAttributes": {},
"primaryItemSourceId": "<string>",
"primaryItemSourceVersion": 123,
"primaryItemSourceColumnsAttributes": {},
"metadata": {},
"partsCount": 123,
"materialsCount": 123,
"usedAsParts": true,
"catalogAlternativeCount": 123,
"similarItemsCount": 123,
"coreChangePolicy": {},
"version": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"manufacturerCompany": {
"id": "<string>",
"name": "<string>",
"available": true,
"identity": {
"globalCompany": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"version": 123,
"suggestion": {
"candidates": [
{
"company": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"nameMatch": true,
"matchingHosts": [
"<string>"
],
"typeMatch": true
}
],
"expectedVersion": 123,
"evidenceFingerprint": "<string>"
}
}
},
"restored": true,
"deletedAt": "<string>",
"images": [
{
"id": "<string>",
"familyId": "<string>",
"url": "<string>",
"filename": "<string>",
"isPrimary": true,
"version": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"affectedParentFamilyIds": [
"<string>"
],
"affectedProjectIds": [
"<string>"
]
}
],
"items": [
{
"id": "<string>",
"familyId": "<string>",
"name": "<string>",
"isPrimary": true,
"columnsAttributes": {},
"version": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"affectedParentFamilyIds": [
"<string>"
],
"affectedProjectIds": [
"<string>"
]
}
],
"enrichedParts": [
{
"id": "<string>",
"itemId": "<string>",
"partItemId": "<string>",
"partItemName": "<string>",
"partItemColumnsAttributes": {},
"partItemVersion": 123,
"quantity": "<string>",
"createdAt": "<string>",
"partFamily": {
"id": "<string>",
"name": "<string>",
"status": "<string>",
"itemType": "<string>",
"categoryId": "<string>",
"categoryName": "<string>",
"primaryImageUrl": "<string>",
"partsCount": 123,
"materialsCount": 123,
"version": 123
},
"primaryItemSourceId": "<string>",
"sources": [
{
"id": "<string>",
"itemId": "<string>",
"familySourceId": "<string>",
"columnsAttributes": {},
"version": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"affectedParentFamilyIds": [
"<string>"
],
"affectedProjectIds": [
"<string>"
]
}
]
}
],
"affectedParentFamilyIds": [
"<string>"
],
"affectedProjectIds": [
"<string>"
],
"finishesCount": 123,
"productsCount": 123
}Catalog Families
Archive
PATCH
/
v1
/
workspaces
/
{workspaceId}
/
catalog-families
/
{id}
/
archive
Archive
curl --request PATCH \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archiveimport requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive', 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://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/catalog-families/{id}/archive")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"status": "draft",
"itemType": "default",
"position": 123,
"categoryId": "<string>",
"productTypeId": "<string>",
"code": "<string>",
"categoryName": "<string>",
"primaryImageUrl": "<string>",
"columnsAttributes": {},
"primaryItemId": "<string>",
"primaryItemName": "<string>",
"primaryItemVersion": 123,
"primaryItemColumnsAttributes": {},
"primaryFamilySourceId": "<string>",
"primarySourceContactCompany": {
"id": "<string>",
"name": "<string>",
"domain": "<string>",
"available": true,
"identity": {
"globalCompany": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"version": 123,
"suggestion": {
"candidates": [
{
"company": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"nameMatch": true,
"matchingHosts": [
"<string>"
],
"typeMatch": true
}
],
"expectedVersion": 123,
"evidenceFingerprint": "<string>"
}
}
},
"primarySourceContactOffice": {
"id": "<string>",
"name": "<string>",
"address": "<string>",
"currency": "USD",
"available": true
},
"primaryFamilySourceVersion": 123,
"primarySourceColumnsAttributes": {},
"primaryItemSourceId": "<string>",
"primaryItemSourceVersion": 123,
"primaryItemSourceColumnsAttributes": {},
"metadata": {},
"partsCount": 123,
"materialsCount": 123,
"usedAsParts": true,
"catalogAlternativeCount": 123,
"similarItemsCount": 123,
"coreChangePolicy": {},
"version": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"manufacturerCompany": {
"id": "<string>",
"name": "<string>",
"available": true,
"identity": {
"globalCompany": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"version": 123,
"suggestion": {
"candidates": [
{
"company": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"nameMatch": true,
"matchingHosts": [
"<string>"
],
"typeMatch": true
}
],
"expectedVersion": 123,
"evidenceFingerprint": "<string>"
}
}
},
"restored": true,
"deletedAt": "<string>",
"images": [
{
"id": "<string>",
"familyId": "<string>",
"url": "<string>",
"filename": "<string>",
"isPrimary": true,
"version": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"affectedParentFamilyIds": [
"<string>"
],
"affectedProjectIds": [
"<string>"
]
}
],
"items": [
{
"id": "<string>",
"familyId": "<string>",
"name": "<string>",
"isPrimary": true,
"columnsAttributes": {},
"version": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"affectedParentFamilyIds": [
"<string>"
],
"affectedProjectIds": [
"<string>"
]
}
],
"enrichedParts": [
{
"id": "<string>",
"itemId": "<string>",
"partItemId": "<string>",
"partItemName": "<string>",
"partItemColumnsAttributes": {},
"partItemVersion": 123,
"quantity": "<string>",
"createdAt": "<string>",
"partFamily": {
"id": "<string>",
"name": "<string>",
"status": "<string>",
"itemType": "<string>",
"categoryId": "<string>",
"categoryName": "<string>",
"primaryImageUrl": "<string>",
"partsCount": 123,
"materialsCount": 123,
"version": 123
},
"primaryItemSourceId": "<string>",
"sources": [
{
"id": "<string>",
"itemId": "<string>",
"familySourceId": "<string>",
"columnsAttributes": {},
"version": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"affectedParentFamilyIds": [
"<string>"
],
"affectedProjectIds": [
"<string>"
]
}
]
}
],
"affectedParentFamilyIds": [
"<string>"
],
"affectedProjectIds": [
"<string>"
],
"finishesCount": 123,
"productsCount": 123
}Response
200 - application/json
Available options:
draft, new_from_project, new_from_collection, ready_to_use Available options:
default, material, template Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I