Cannot upset catalog entry via postman

I am trying to get the catalog upsert to function from postman. I have sent the following but I consistently get errors no matter what I do. I am not a programmer but it should not be this difficult. This is the first “error” I have received with valid info other than “field”. Not sure why square has such generic errors but here I am.

This is just junk data I am simply trying to test with. The error is the attribute does not exist but I can clearly see it when I search via the API.
{
“idempotency_key”: “c8b3e494-6715-45ab-9a15-070690591590”,
“batches”: [
{
“objects”: [
{
“type”: “ITEM”,
“id”: “5JYC6RW6UV2M7LBZISNAUTBT”,
“updated_at”: “2025-01-10T22:21:29.05Z”,
“created_at”: “2025-01-10T22:21:17.238Z”,
“version”: 1736547689050,
“is_deleted”: false,
“custom_attribute_values”: {
“test”: { // Ensure ‘test’ is the correct custom attribute key
“type”: “BOOLEAN”,
“boolean_value”: false
}
},
“present_at_all_locations”: true,
“item_data”: {
“name”: “Member’s Mark Ultra Premium 2-Ply Toilet Paper 9 rolls, 235 sheets/roll”,
“description”: “Get a comfortable, confident clean with Member’s Mark Ultra Premium Bath Tissue, 2-Ply Large Roll (235 sheets, 9 rolls)…”,
“is_taxable”: true,
“variations”: [
{
“type”: “ITEM_VARIATION”,
“id”: “WDFDD4TYXNNGLFCFFHW6UTS7”,
“updated_at”: “2025-01-10T22:21:29.05Z”,
“created_at”: “2025-01-10T22:21:17.238Z”,
“version”: 1736547689050,
“is_deleted”: false,
“present_at_all_locations”: true,
“item_variation_data”: {
“item_id”: “5JYC6RW6UV2M7LBZISNAUTBT”,
“name”: “Regular”,
“ordinal”: 0,
“pricing_type”: “FIXED_PRICING”,
“price_money”: {
“amount”: 999,
“currency”: “USD”
},
“location_overrides”: [
{
“location_id”: “LZY446J0T4PV8”,
“track_inventory”: true,
“sold_out”: true
}
],
“track_inventory”: true,
“sellable”: true,
“stockable”: true,
“channels”: [
“CH_tRkniwWMIsnjtCfQQd7CBggmMBMG2nsvQmofYRlQuYC”
]
}
}
],
“product_type”: “REGULAR”,
“ecom_available”: true,
“ecom_visibility”: “VISIBLE”,
“description_html”: “Get a comfortable, confident clean with Member's Mark Ultra Premium Bath Tissue…”,
“description_plaintext”: “Get a comfortable, confident clean with Member's Mark Ultra Premium Bath Tissue…”,
“channels”: [
“CH_tRkniwWMIsnjtCfQQd7CBggmMBMG2nsvQmofYRlQuYC”
],
“is_archived”: false
}
},
{
“type”: “ITEM”,
“id”: “UJ63HTJZCDPLVK64LVKMF3ZD”,
“updated_at”: “2025-01-10T22:31:16.535Z”,
“created_at”: “2025-01-10T22:26:50.382Z”,
“version”: 1736548276535,
“is_deleted”: false,
“present_at_all_locations”: true,
“item_data”: {
“name”: “Wonder Classic White Bread 20 oz.”,
“description”: “Experience the wonder of Wonder Classic White Bread 20 oz.! Indulge in its soft texture and savor the fresh aroma…”,
“is_taxable”: true,
“variations”: [
{
“type”: “ITEM_VARIATION”,
“id”: “UZMEH5DFNK26CL62FBQ34LWZ”,
“updated_at”: “2025-01-10T22:27:20.287Z”,
“created_at”: “2025-01-10T22:26:50.382Z”,
“version”: 1736548040287,
“is_deleted”: false,
“present_at_all_locations”: true,
“item_variation_data”: {
“item_id”: “UJ63HTJZCDPLVK64LVKMF3ZD”,
“name”: “Regular”,
“ordinal”: 1,
“pricing_type”: “FIXED_PRICING”,
“price_money”: {
“amount”: 300,
“currency”: “USD”
},
“sellable”: true,
“stockable”: true,
“channels”: [
“CH_tRkniwWMIsnjtCfQQd7CBggmMBMG2nsvQmofYRlQuYC”
]
}
}
],
“product_type”: “REGULAR”,
“skip_modifier_screen”: false,
“ecom_available”: true,
“ecom_visibility”: “VISIBLE”,
“pickup_fulfillment_preferences_id”: “fprefs_1287zrd12p106k38na6x95u9u”,
“delivery_fulfillment_preferences_id”: “fprefs_1287zrgn7zwitxk72iytbjqdy”,
“description_html”: “Experience the wonder of Wonder Classic White Bread 20 oz.! Indulge in its soft texture and savor the fresh aroma…”,
“description_plaintext”: “Experience the wonder of Wonder Classic White Bread 20 oz.! Indulge in its soft texture and savor the fresh aroma…”,
“channels”: [
“CH_tRkniwWMIsnjtCfQQd7CBggmMBMG2nsvQmofYRlQuYC”
],
“is_archived”: false
}
}
]
}
]
}

Any help would be appreciated.

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Catalog API
Add Custom Attributes
Call the SearchCatalogObjects Endpoint

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

The error message you’re seeing typically indicates that the custom attribute you’re trying to update doesn’t exist or isn’t visible to your application.

In your request, you’re trying to update a custom attribute with the key “test”. Make sure that this custom attribute has been created in your Square account and that it’s visible to your application.

If the custom attribute “test” does exist and is visible to your application, then the issue might be with the value you’re trying to set. In your request, you’re setting the value of the custom attribute to a boolean. Make sure that the custom attribute “test” is of the boolean type. If it’s not, you’ll need to provide a value that matches the type of the custom attribute.

Also, ensure that the catalog object ID you’re trying to update is correct and that the object exists in your Square account.

Lastly, make sure that you’re using the correct access token to make the API request. The access token should have the necessary permissions to update catalog objects and custom attributes.

This answer was reviewed by @Bryan-Square.