SKU Data Delete Data

DELETE{{api_url}}/shop/products/sku_data/{{sku}}/{{data_name}}

Removes one SKU Data entry from one SKU: the row for that data name is deleted, not blanked. After this call SKU Data Get no longer lists the name on the SKU, and SKU Data Search returns an empty string for it. For most purposes clearing the value is enough and keeps the name on the SKU for the next write; use SKU Data Set with an empty data_value for that. Use this delete when the entry itself should go, for example a custom name created by mistake or a reserved name that should stop being sent to a connection entirely.

Deleting a reserved name is allowed. Deleting thehomedepot_sku means InfiPlex has no Home Depot SKU for the item until one is set again.

Path variables

VariableTypeDescription
skustringThe SKU the entry belongs to.
data_namestringThe data name to remove, exactly as stored.

Example

{{api_url}}/shop/products/sku_data/abc/custom_data_1

Response

1

1 when the entry was removed.

Authorization

Bearer token, sent in the Authorization header. Inherited from the collection.

Example Request

curl --location --request DELETE '{{api_url}}/shop/products/sku_data/{{sku}}/{{data_name}}' \
--header 'Authorization: Bearer {{auth_token}}'

Example Responses

SKU Data Delete Data

Request

curl --location --request DELETE '{{api_url}}/shop/products/sku_data/abc/custom_data_1' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '[
    {
        "sku": "abc",
        "data_name": "custom_data_1",
        "data_value": "some value abc 111"
    },
    {
        "sku": "abc",
        "data_name": "custom_data_2",
        "data_value": "some value abc 222"
    },
    {
        "sku": "def",
        "data_name": "custom_data_1",
        "data_value": "some value def 111"
    },
    {
        "sku": "def",
        "data_name": "custom_data_2",
        "data_value": "some value def 222"
    }
]'

Response 200 OK

1