List Attributes

GET /attributes

You can use this endpoint to retrieve your museum's attributes, in the order set in Settings. Each SELECT attribute lists all its options, also options no event has yet, so you can build a category menu from it.

The list isn't paged: it always holds all the attributes, and total is their number.

Parameters

ParameterTypeDefaultDescription
entityTypestringOnly the attributes of this object. EVENT is the only value for now. Without it, the list holds the attributes of every object the API serves them for, which today is events only
GET /attributes?entityType=EVENT

Example Response

Copy
{ "total": 5, "list": [ { "id": "0b4e6f1a-2c3d-4e5f-8a9b-1c2d3e4f5a6b", "entityType": "EVENT", "name": "Kategori", "type": "SELECT", "multiple": false, "options": [ { "id": "7c1d2e3f-4a5b-4c6d-9e8f-0a1b2c3d4e5f", "masterLanguage": "da", "name": "Udforsk", "translations": [{ "language": "en", "name": "Explore" }] }, { "id": "a2f9b8c7-d6e5-4f4a-8b3c-2d1e0f9a8b7c", "masterLanguage": "da", "name": "Omvisning", "translations": [] } ] }, { "id": "5f2a3b4c-5d6e-4f7a-8b9c-0d1e2f3a4b5c", "entityType": "EVENT", "name": "Varighed", "type": "NUMBER" }, { "id": "9d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a", "entityType": "EVENT", "name": "Gratis", "type": "BOOLEAN" }, { "id": "c81f2a3b-4c5d-4e6f-8a7b-9c0d1e2f3a4b", "entityType": "EVENT", "name": "Premiere", "type": "DATE" }, { "id": "e04b5c6d-7e8f-4a9b-8c0d-1e2f3a4b5c6d", "entityType": "EVENT", "name": "Arrangør", "type": "TEXT" } ] }

Errors

Errors are returned as { "errors": [{ "message": "UNSUPPORTED_ENTITY_TYPE" }] }.

StatusMessageWhen
400UNSUPPORTED_ENTITY_TYPEentityType is a value other than EVENT
‹ Previous
Get Event Ticket
Next ›
Get Attribute