include=stats
adds element stats to the response. Possible values: stats
.Check below examples of responses for different types of elements.
curl --request GET \--url https://environment.lvis.io/api/v2/elements/2862e114-2fa9-47ae-8774-2ba0b27f1887 \--header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \--header 'Content-Type: application/vnd.api+json'
The response depends on type of element, see examples below.
{"data": {"id": "2862e114-2fa9-47ae-8774-2ba0b27f1887","type": "elements","attributes": {"offset": 0,"duration": 0,"content_type": "media","start_mode": "manual","state": "non_scheduled","updated_at": null,"updated_at_iso": null,"revoked_at": null,"revoked_at_iso": null,"label": "Label example","custom_fields": [{"key": "label","values": {"en": "Label example","by": null}},{"key": "image","values": {"all": "https://example.com/image.jpg"}}]},"relationships": {"event": {"data": {"id": "cafc2ae8-2cd6-4664-bb20-e9e30a5f0e8d","type": "events"}},"stats": {"data": {"id": "2862e114-2fa9-47ae-8774-2ba0b27f1887","type": "stats"}}},"links": {"self": "https://environment.lvis.io/api/v2/elements/2862e114-2fa9-47ae-8774-2ba0b27f1887"}}}
Element attributes described in the Element Resource section.