Adding custom attribute via api

I am creating some items dynamically and want to add a custom attribute to it. The item gets created, but I can’t seem to ponder out how to set the custom attribute. What is incorrect about this payload for catalog upsert?

{
    "idempotency_key": "960c9040-c5b6-489e-99fe-1e299b72291e",
    "object": {
    "id": "#9587409476667",
        "type": "ITEM",
        "customAttributeValues":
        {
            "Square:e571c7c0-3d65-4b3b-983e-81b546299422":
            {
                "boolean_value": true,
                "key": "Square:e571c7c0-3d65-4b3b-983e-81b546299422",
                "custom_attribute_definition_id": "6GEYCCI2LFES6G6AR63425LK",
                "type": "BOOLEAN",
                "name": "HideOnline"
            }
        },
        "item_data":
        {
            "availableOnline": true,
            "availableForPickup": true,
            "availableElectronically": true,
            "is_archived": true,
            "name": "Mother's Day Gift Basket",
            "description": "1 x Daffodil - 4in\r\n1 x Daffodil - 6in\r\n1 x Azalea - 4.5in\r\n1 x Hyacinth - 4in\r\n1 x Metal Hanging Flower Pot",
            "variations":
            [
                {
                    "id": "#9587409476664var",
                    "type": "ITEM_VARIATION",
                    "item_variation_data":
                    {
                        "sku": "9587409476664",
                        "price_money":
                        {
                            "amount": 4332,
                            "currency": "USD"
                        },
                        "pricing_type": "FIXED_PRICING"
                    }
                }
            ]
        }
    }
}

: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:
https://developer.squareup.com/docs/catalog-api/add-custom-attributes
https://developer.squareup.com/docs/merchant-custom-attributes-api/custom-attributes

Additional Documentation

https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attributes
Use Custom Attributes for Locations
https://developer.squareup.com/docs/orders-custom-attributes-api/custom-attributes

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.

I am apparently great at asking the question and then immediately seeing the issue. I have a property incorrectly named.

Glad to hear you figured it out. :slightly_smiling_face: