post https://a.klaviyo.com/api/catalog-categories/
Create a new catalog category.
Rate limits:
Burst: 75/s
Steady: 700/m
Scopes:
Catalogs Write
Responses
Create a new catalog category.
Rate limits:
Burst: 75/s
Steady: 700/m
Scopes:
Catalogs Write
xxxxxxxxxx
18curl --request POST \
--url https://a.klaviyo.com/api/catalog-categories/ \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'revision: 2023-01-24' \
--data '
{
"data": {
"type": "catalog-category",
"attributes": {
"external_id": "SAMPLE-DATA-CATEGORY-APPAREL",
"name": "Sample Data Category Apparel",
"catalog_type": "$default"
},
"relationships": {
"items": {
"data": [
{
"type": "catalog-item"
}
]
}
}
xxxxxxxxxx
14{
"data": {
"type": "catalog-category",
"id": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL",
"attributes": {
"external_id": "SAMPLE-DATA-CATEGORY-APPAREL",
"name": "Sample Data Category Apparel",
"updated": "2022-11-08T00:00:00"
},
"links": {
"self": "string"
}
}
}