Skip to content

Get Custom Entity Attribute
Beta

Request

Everything about one attribute of the definition of the Custom Entity named by customEntityDenominator, the tenant's own or the platform's, in every language: what it is, what its type carries, where that Custom Entity's form draws it and what may be changed about it — what a screen editing the attribute loads.

Custom Entities have a single form: an attributeSetId, which chooses a Product's or a Variant's, is refused.

Response

200 OK — the attribute under value, in the members a create reports it in: what every attribute has, and what its type carries in every language — a checklist's options with their translations, a table's templates and hasStartingTable, an image's sizeVariants and fileNameAttributes, the linkingPattern of an image or a file, a related items attribute's target and separator. Then where the form draws it, placement (null when the form does not lay it out), and what may be changed about it, editability.

Example

GET /Metadata/CustomEntities('Stores')/attributes('mat_stores_openinghours') HTTP/1.1
X-API-KEY: your-api-key-here
Path
customEntityDenominatorstringrequired

The name of the Custom Entity

attributeIdstringrequired

The identifier of the attribute to read, matched exactly

Headers
X-API-KEYstring

Tenant's API key (required)

curl -i -X GET \
  'https://api2.saleslayer.com/catalog/Metadata/CustomEntities('\''{customEntityDenominator}'\'')/attributes('\''{attributeId}'\'')' \
  -H 'X-API-KEY: string'

Responses

OK

Bodyapplication/json
@etagstring or null
@contextstring or null
valueany or null
Response
{ "value": { "identifier": "vcrj_note", "title": "Note", "attributeType": "shortText", "isLocalized": false, "isFormReadonly": false, "kind": "custom", "isRequired": false, "isFormRequired": false, "titleTranslations": [], "placement": { … }, "editability": { … } }, "@readLink": "https://api2.saleslayer.com/catalog/Metadata/CustomEntities('example')/attributes('vcrj_note')", "@editLink": "https://api2.saleslayer.com/catalog/Metadata/CustomEntities('example')/attributes('vcrj_note')" }