- Delete Custom Entity Attribute
Deletes an attribute of the tenant's own from the definition of the Custom Entity named customEntityDenominator, within the request: every item of it loses its value for the attribute, in every language, and it leaves the form, the Excel views and whatever else hangs from it. No snapshot is taken before: nothing keeps its values. The attributes of the platform's own cannot be deleted.
Custom Entities have a single form: onlyFromForm and attributeSetId, which take an attribute off one form of a Product or a Variant, are refused with any value, and nothing is deleted.
Any other query parameter is refused with a 400, and nothing is deleted.
204 No Content — the attribute is deleted. 400 Bad Request — onlyFromForm, attributeSetId or another query parameter was sent. 409 Conflict — it belongs to the platform, or its deletion is already pending.
DELETE /Metadata/CustomEntities('example')/attributes('vcrj_note') HTTP/1.1
X-API-KEY: your-api-key-here- Sales Layer Catalog APIhttps://api2.saleslayer.com/catalog/Metadata/CustomEntities('{customEntityDenominator}')/attributes('{attributeId}')
curl -i -X DELETE \
'https://api2.saleslayer.com/catalog/Metadata/CustomEntities('\''{customEntityDenominator}'\'')/attributes('\''{attributeId}'\'')' \
-H 'X-API-KEY: string'