Get Attribute

GET /attributes/:attributeId

You can use this endpoint to retrieve a single attribute by its id. A SELECT attribute comes with all its options, also options no event has yet.

Example Response

Copy
{ "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": [] } ] }

Errors

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

StatusMessageWhen
404ATTRIBUTE_NOT_FOUNDThe attribute doesn't exist, was deleted, belongs to another museum, or is on an object the API doesn't serve attributes for yet
‹ Previous
List Attributes
Next ›
List Visits