SINGLE
Description
The Endpoint allows for a single event to be fetched.It expects an event id and returns the corresponding event. The event will be returned in its entirety including all relationtions. Specifically relations such as event_media, event_chat should be mentioned.Furthermore, all relations the user has with the event and the user permission at the event will be returned.
Endpoint
GET https://api.thenights.app/event_manager/user_events?request_type=SINGLE&event_id=d876d881-e780-4daa-8bad-9679eaf4fe99
Request
Headers
| Key | Value |
|---|---|
| Content-Type | application/json |
Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| request_type | String | yes | Set which event endpoint is contactes should be SINGLE. |
| event_id | UUID | yes | The id of the event that should be fetched. |
Response
Returns the entire event object for the specified event.
Success Response
Code: 200 OK
| Parameter | Type | Description |
|---|---|---|
| event_id | UUID | Id of the event. |
| event_name | String | Name of the event. |
| event_type | String | Type of the event. |
| event_public_status | String | Public status of the event (public, semipublic, or private). |
| event_description_short | String | Short event description. |
| event_description_long | String | Long event description. |
| event_startdatetime | DateTime | Start date and time of the event. |
| event_enddatetime | DateTime | End date and time of the event. |
| event_rating | Integer | Event rating. |
| event_likecount | Integer | Number of likes for the event. |
| event_created | DateTime | Date and time when the event was created. |
| event_status | String | Event status (e.g., UPCOMING, RUNNING). |
| event_age | Integer | Minimum age requirement for the event. |
| event_image | String | URL of the event image. |
| event_longitude | String | Longitude coordinates of the event location. |
| event_latitude | String | Latitude coordinates of the event location. |
| event_nrattendees | Integer | Number of attendees at the event. |
| event_hasMedia | Boolean | Indicates if the event has media (true or false). |
| event_watched | Integer | Number of times the event has been watched. |
| event_story_thumb | String | URL of the event story thumbnail image. |
| event_location | Object | Event location details (e.g., street name, postal code). |
| event_mediaobjects | Object | Media objects related to the event. |
| event_vibes | Array | Vibes associated with the event. |
| event_genres | Array | Genres associated with the event. |
| event_tags | Array | Tags related to the event. |
| event_faqs | Object | Frequently Asked Questions (FAQs) about the event. |
| event_attendees | Object | Information about event attendees. |
| event_partner_logo | String | Partner logo url for the event (if applicable). |
| event_club_id | UUID | Club ID associated with the event (if applicable). |
| event_club_name | String | Club name associated with the event (if applicable). |
| event_att_rel_id | UUID | Event attendee relationship ID (if applicable). |
| event_user_status | String | User status for the event (e.g., NONE, OWNER). |
| event_isLiked | Boolean | Indicates if the event is liked by the user. |
| event_likedid | UUID | ID of the like relation (if applicable). |
| event_chat | Array | Chat related to the event |
| event_media | Array | List of media corresponding to the event |
Example Response Body
{
"event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99",
"event_name": "A Little Party Never Kills Nobody",
"event_type": "PARTY",
"event_public_status": "SEMIPUBLIC",
"event_description_short": "Unforgettable night of music, dancing, and fun!",
"event_description_long": "Join us for \"A Little Party Never Kills Nobody,\" an electrifying night of pure entertainment and revelry! Get ready to groove to the hottest beats spun by our renowned DJ, indulge in delectable gourmet delights, and sip on signature cocktails that will tantalize your taste buds. Whether you're dancing the night away or lounging in style, this event promises an unforgettable experience. Don't miss your chance to be a part of this extraordinary soirée that celebrates life, laughter, and the joy of the moment.",
"event_startdatetime": "2023-09-18T17:00:00Z",
"event_enddatetime": "2023-09-19T05:00:00Z",
"event_rating": 0,
"event_likecount": 1,
"event_created": "2023-09-18T14:20:52.404000Z",
"event_status": "UPCOMING",
"event_age": 16,
"event_image": "https://api.thenights.app/media/images/default/event16.jpg",
"event_longitude": "4.897840000000000000",
"event_latitude": "52.365317000000000000",
"event_nrattendees": 1,
"event_hasMedia": true,
"event_watched": 14,
"event_story_thumb": "https://api.thenights.app/media/2023/9/18/36ebde2e-ae1e-4d58-a408-eef6b88b9dc6.webp",
"event_location": {
"event_street_name": "Utrechtsestraat 18A",
"event_postal_name": "Amsterdam",
"event_postal_code": "1017 VN",
"event_state_long": "Noord-Holland",
"event_state_short": "NH",
"event_country_long": "Niederlande",
"event_country_short": "NL"
},
"event_mediaobjects": {
"4a3ed0f3-8b7a-4cbc-9f3f-6e1226ff65d1": {
"event_media_id": "4a3ed0f3-8b7a-4cbc-9f3f-6e1226ff65d1",
"event_media": "https://api.thenights.app/media/2023/9/18/4066db14-898a-43ba-80ad-fbcd7f84da1d.mp4",
"event_media_type": "VIDEO",
"event_media_format": "PORTRAIT",
"event_media_formtype": "mp4",
"event_media_creator": "4806fde3-081a-407f-a400-9dcad5743305",
"event_media_created": "2023-09-18T14:23:21.791000",
"event_media_thumb": "https://api.thenights.app/media/2023/9/18/36ebde2e-ae1e-4d58-a408-eef6b88b9dc6.webp",
"event_media_index": null
},
"73b9dfb6-c54a-45f6-a942-afc53721eaf9": {
"event_media_id": "73b9dfb6-c54a-45f6-a942-afc53721eaf9",
"event_media": "https://api.thenights.app/media/2023/9/18/e110e1e7-450b-45bf-851f-6f96a80f8e63.BC945397-4E2A-42ED-8F59-D34F206B59A4.jpg",
"event_media_type": "IMAGE",
"event_media_format": "UNDEFINED",
"event_media_formtype": "BC945397-4E2A-42ED-8F59-D34F206B59A4.jpg",
"event_media_creator": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"event_media_created": "2023-09-18T14:24:45.090000",
"event_media_thumb": "https://api.thenights.app/media/2023/9/18/e110e1e7-450b-45bf-851f-6f96a80f8e63.BC945397-4E2A-42ED-8F59-D34F206B59A4.jpg",
"event_media_index": null
},
"8ddef525-8a9e-4ab7-bdc3-65ade4d0a1b1": {
"event_media_id": "8ddef525-8a9e-4ab7-bdc3-65ade4d0a1b1",
"event_media": "https://api.thenights.app/media/2023/9/18/4640bdd6-39f5-4d77-8a8a-d175293b0f53.212DB743-CF89-4BB3-A3DD-ACFD8F823F26.jpg",
"event_media_type": "IMAGE",
"event_media_format": "UNDEFINED",
"event_media_formtype": "212DB743-CF89-4BB3-A3DD-ACFD8F823F26.jpg",
"event_media_creator": "4806fde3-081a-407f-a400-9dcad5743305",
"event_media_created": "2023-09-18T14:23:26.693000",
"event_media_thumb": "https://api.thenights.app/media/2023/9/18/4640bdd6-39f5-4d77-8a8a-d175293b0f53.212DB743-CF89-4BB3-A3DD-ACFD8F823F26.jpg",
"event_media_index": null
},
"c6933a1b-2888-4dc1-9fec-5fb1c749de20": {
"event_media_id": "c6933a1b-2888-4dc1-9fec-5fb1c749de20",
"event_media": "https://api.thenights.app/media/2023/9/18/4120b297-2e00-41a3-b036-55416300ffba.AD0D07A4-1DDD-48EC-8E53-41789B91E697.jpg",
"event_media_type": "IMAGE",
"event_media_format": "UNDEFINED",
"event_media_formtype": "AD0D07A4-1DDD-48EC-8E53-41789B91E697.jpg",
"event_media_creator": "4806fde3-081a-407f-a400-9dcad5743305",
"event_media_created": "2023-09-18T14:23:22.055000",
"event_media_thumb": "https://api.thenights.app/media/2023/9/18/4120b297-2e00-41a3-b036-55416300ffba.AD0D07A4-1DDD-48EC-8E53-41789B91E697.jpg",
"event_media_index": null
},
"c9775709-344b-47d3-b355-80ccc653b5d2": {
"event_media_id": "c9775709-344b-47d3-b355-80ccc653b5d2",
"event_media": "https://api.thenights.app/media/2023/9/18/af5113c1-2bdc-45a6-b274-f9b2107e681c.mp4",
"event_media_type": "VIDEO",
"event_media_format": "LANDSCAPE",
"event_media_formtype": "mp4",
"event_media_creator": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"event_media_created": "2023-09-18T14:25:20.921000",
"event_media_thumb": "https://api.thenights.app/media/2023/9/18/11a69c80-77e7-4572-a52b-2cd3d231be27.webp",
"event_media_index": null
}
},
"event_vibes": [
"Tanzen"
],
"event_genres": [],
"event_tags": [
"Party",
"Music",
"Dancing",
"Nightlife",
"Entertainment",
"DJ",
"Cocktails",
"Celebration",
"Fun",
"Night out",
"Dancefloor",
"Memorable",
"#Alk"
],
"event_faqs": {
"07efd9d4-4adb-425a-8925-72f89de873f1": {
"eventfaq_id": "07efd9d4-4adb-425a-8925-72f89de873f1",
"eventfaq_question": "Is there parking available ?",
"eventfaq_answer": "Yes, we have a couple of parking spaces in our street.",
"eventfaq_created": "2023-09-18T14:27:29.511000",
"eventfaq_edited": "2023-09-18T14:27:29.511000",
"eventfaq_creator": null
},
"466e01f2-9746-4a0c-a966-b92b8b7f2d16": {
"eventfaq_id": "466e01f2-9746-4a0c-a966-b92b8b7f2d16",
"eventfaq_question": "Will the qestion be answered?",
"eventfaq_answer": null,
"eventfaq_created": "2023-09-18T14:28:52.512000",
"eventfaq_edited": "2023-09-18T14:28:52.512000",
"eventfaq_creator": "aceebf43-4aa9-4bb8-bd1d-7538a174654b"
},
"73ba91b1-6a45-4b92-83e9-0d4fc4402584": {
"eventfaq_id": "73ba91b1-6a45-4b92-83e9-0d4fc4402584",
"eventfaq_question": "What's the event date and time?",
"eventfaq_answer": "18.09 19:00",
"eventfaq_created": "2023-09-18T14:21:36.170000",
"eventfaq_edited": "2023-09-18T14:21:36.170000",
"eventfaq_creator": "4806fde3-081a-407f-a400-9dcad5743305"
},
"d7e63499-897b-401f-9876-9afaf8f82572": {
"eventfaq_id": "d7e63499-897b-401f-9876-9afaf8f82572",
"eventfaq_question": "Is there a dresscode?",
"eventfaq_answer": "No! Wear whatever you like!",
"eventfaq_created": "2023-09-18T14:28:14.706000",
"eventfaq_edited": "2023-09-18T14:28:14.706000",
"eventfaq_creator": null
},
"f9c28423-aa0c-4f26-8043-5642add2daad": {
"eventfaq_id": "f9c28423-aa0c-4f26-8043-5642add2daad",
"eventfaq_question": "Can I bring a plus one?",
"eventfaq_answer": "Absolutely! Feel free to bring a guest and double the fun.",
"eventfaq_created": "2023-09-18T14:22:12.856000",
"eventfaq_edited": "2023-09-18T14:22:12.856000",
"eventfaq_creator": null
}
},
"event_attendees": {
"4752bede-eb18-40f9-b3bf-bbc7f47a292e": {
"event_user_rel_id": "4752bede-eb18-40f9-b3bf-bbc7f47a292e",
"user_id": "4806fde3-081a-407f-a400-9dcad5743305",
"event_user_rel_type": "OWNER",
"event_user_rel_created": "2023-09-18T14:20:52.404000",
"event_user_rel_lastedit": "2023-09-18T14:20:52.404000",
"event_user_rel_profile": {
"profile_name": "MaxStrange",
"profile_firstname": "Max",
"profile_surname": "Caulfield",
"profile_phone": "+4917545556677",
"profile_bio": null,
"profile_driplvl": null,
"profile_drip": 0.01917808219178082,
"profile_profileimage": "/media/profile_images/fe1de239-1d45-47fd-8db7-39d521a57af8.png",
"profile_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305"
}
},
"f028542f-fc4b-4332-9fa0-4f3bbe6f6389": {
"event_user_rel_id": "f028542f-fc4b-4332-9fa0-4f3bbe6f6389",
"user_id": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"event_user_rel_type": "ATTENDEE",
"event_user_rel_created": "2023-09-18T14:22:25.372000",
"event_user_rel_lastedit": "2023-09-18T14:24:30.565000",
"event_user_rel_profile": {
"profile_name": "CXX",
"profile_firstname": "Calvin",
"profile_surname": "Bialek",
"profile_phone": "+4917646663277",
"profile_bio": null,
"profile_driplvl": null,
"profile_drip": 0.0273972602739726,
"profile_profileimage": "/media/profile_images/18ff7f80-08f7-4b29-a2b0-ba4cf2476666.png",
"profile_userobj_id": "aceebf43-4aa9-4bb8-bd1d-7538a174654b"
}
}
},
"event_partner_logo": null,
"event_club_id": null,
"event_club_name": null,
"event_att_rel_id": null,
"event_user_status": "NONE",
"event_isLiked": null,
"event_likedid": null,
"event_chat": [
{
"msg_message_id": "f89b1e0a-2eee-428b-a067-2e37c8de232d",
"msg_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99",
"msg_sender_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305",
"msg_message": "Hey, everyone! We're thrilled to announce \"A Little Party Never Kills Nobody\"! 🎉",
"msg_media": null,
"msg_type": "DEFAULT",
"msg_status": "STD",
"msg_sender_profile": {
"profile_name": "MaxStrange",
"profile_firstname": "Max",
"profile_surname": "Caulfield",
"profile_phone": "+4917545556677",
"profile_bio": null,
"profile_driplvl": null,
"profile_drip": "0.01917808219178082",
"profile_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305",
"profile_profileimage": "/media/profile_images/fe1de239-1d45-47fd-8db7-39d521a57af8.png"
},
"msg_event_name": "A Little Party Never Kills Nobody",
"msg_created_at": "2023-09-18T14:29:22.530000Z",
"msg_updated_at": "2023-09-18T14:29:22.530000Z"
},
{
"msg_message_id": "06c4a37f-1b31-417f-8bb3-0dc381baa770",
"msg_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99",
"msg_sender_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305",
"msg_message": "Save the date. It's going to be epic. 🕺🎶",
"msg_media": null,
"msg_type": "DEFAULT",
"msg_status": "STD",
"msg_sender_profile": {
"profile_name": "MaxStrange",
"profile_firstname": "Max",
"profile_surname": "Caulfield",
"profile_phone": "+4917545556677",
"profile_bio": null,
"profile_driplvl": null,
"profile_drip": "0.01917808219178082",
"profile_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305",
"profile_profileimage": "/media/profile_images/fe1de239-1d45-47fd-8db7-39d521a57af8.png"
},
"msg_event_name": "A Little Party Never Kills Nobody",
"msg_created_at": "2023-09-18T14:29:48.935000Z",
"msg_updated_at": "2023-09-18T14:29:48.936000Z"
},
{
"msg_message_id": "a5315865-cf29-4ae0-a59c-bd3a30ff761a",
"msg_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99",
"msg_sender_userobj_id": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"msg_message": "Awesome! I'm in, no questions asked. 🥳",
"msg_media": null,
"msg_type": "DEFAULT",
"msg_status": "STD",
"msg_sender_profile": {
"profile_name": "CXX",
"profile_firstname": "Calvin",
"profile_surname": "Bialek",
"profile_phone": "+4917646663277",
"profile_bio": null,
"profile_driplvl": null,
"profile_drip": "0.0273972602739726",
"profile_userobj_id": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"profile_profileimage": "/media/profile_images/18ff7f80-08f7-4b29-a2b0-ba4cf2476666.png"
},
"msg_event_name": "A Little Party Never Kills Nobody",
"msg_created_at": "2023-09-18T14:30:07.469000Z",
"msg_updated_at": "2023-09-18T14:30:07.470000Z"
},
{
"msg_message_id": "0f2b8919-137b-4485-8121-a1a3e641f169",
"msg_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99",
"msg_sender_userobj_id": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"msg_message": "What's the dress code, by the way?",
"msg_media": null,
"msg_type": "DEFAULT",
"msg_status": "STD",
"msg_sender_profile": {
"profile_name": "CXX",
"profile_firstname": "Calvin",
"profile_surname": "Bialek",
"profile_phone": "+4917646663277",
"profile_bio": null,
"profile_driplvl": null,
"profile_drip": "0.0273972602739726",
"profile_userobj_id": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"profile_profileimage": "/media/profile_images/18ff7f80-08f7-4b29-a2b0-ba4cf2476666.png"
},
"msg_event_name": "A Little Party Never Kills Nobody",
"msg_created_at": "2023-09-18T14:30:29.046000Z",
"msg_updated_at": "2023-09-18T14:30:29.046000Z"
},
{
"msg_message_id": "4720ead3-50b6-4806-a3f8-41e185133998",
"msg_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99",
"msg_sender_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305",
"msg_message": "Glad to hear that! No dress code. Dress to impress! 💃🕺",
"msg_media": null,
"msg_type": "DEFAULT",
"msg_status": "STD",
"msg_sender_profile": {
"profile_name": "MaxStrange",
"profile_firstname": "Max",
"profile_surname": "Caulfield",
"profile_phone": "+4917545556677",
"profile_bio": null,
"profile_driplvl": null,
"profile_drip": "0.01917808219178082",
"profile_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305",
"profile_profileimage": "/media/profile_images/fe1de239-1d45-47fd-8db7-39d521a57af8.png"
},
"msg_event_name": "A Little Party Never Kills Nobody",
"msg_created_at": "2023-09-18T14:31:12.114000Z",
"msg_updated_at": "2023-09-18T14:31:12.114000Z"
},
{
"msg_message_id": "7a0f3cd9-cb0c-4614-b8d1-598f718e2b7d",
"msg_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99",
"msg_sender_userobj_id": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"msg_message": "Thanks. Already excited!",
"msg_media": null,
"msg_type": "DEFAULT",
"msg_status": "STD",
"msg_sender_profile": {
"profile_name": "CXX",
"profile_firstname": "Calvin",
"profile_surname": "Bialek",
"profile_phone": "+4917646663277",
"profile_bio": null,
"profile_driplvl": null,
"profile_drip": "0.0273972602739726",
"profile_userobj_id": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"profile_profileimage": "/media/profile_images/18ff7f80-08f7-4b29-a2b0-ba4cf2476666.png"
},
"msg_event_name": "A Little Party Never Kills Nobody",
"msg_created_at": "2023-09-18T14:33:18.564000Z",
"msg_updated_at": "2023-09-18T14:33:18.564000Z"
},
{
"msg_message_id": "b5db417f-8bcb-4465-93ed-720e3b92edb2",
"msg_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99",
"msg_sender_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305",
"msg_message": "Get ready for a night of non-stop dancing and unforgettable memories! 💃🕺🎵",
"msg_media": null,
"msg_type": "DEFAULT",
"msg_status": "STD",
"msg_sender_profile": {
"profile_name": "MaxStrange",
"profile_firstname": "Max",
"profile_surname": "Caulfield",
"profile_phone": "+4917545556677",
"profile_bio": null,
"profile_driplvl": null,
"profile_drip": "0.01917808219178082",
"profile_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305",
"profile_profileimage": "/media/profile_images/fe1de239-1d45-47fd-8db7-39d521a57af8.png"
},
"msg_event_name": "A Little Party Never Kills Nobody",
"msg_created_at": "2023-09-18T14:33:55.117000Z",
"msg_updated_at": "2023-09-18T14:33:55.117000Z"
},
{
"msg_message_id": "0453db11-665a-4291-8c03-229cf6d97877",
"msg_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99",
"msg_sender_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305",
"msg_message": "See you then!",
"msg_media": null,
"msg_type": "DEFAULT",
"msg_status": "STD",
"msg_sender_profile": {
"profile_name": "MaxStrange",
"profile_firstname": "Max",
"profile_surname": "Caulfield",
"profile_phone": "+4917545556677",
"profile_bio": null,
"profile_driplvl": null,
"profile_drip": "0.01917808219178082",
"profile_userobj_id": "4806fde3-081a-407f-a400-9dcad5743305",
"profile_profileimage": "/media/profile_images/fe1de239-1d45-47fd-8db7-39d521a57af8.png"
},
"msg_event_name": "A Little Party Never Kills Nobody",
"msg_created_at": "2023-09-18T14:34:10.920000Z",
"msg_updated_at": "2023-09-18T14:34:10.920000Z"
}
],
"event_media": [
{
"event_media_id": "4a3ed0f3-8b7a-4cbc-9f3f-6e1226ff65d1",
"event_media_media": "https://api.thenights.app/media/2023/9/18/4066db14-898a-43ba-80ad-fbcd7f84da1d.mp4",
"event_media_type": "VIDEO",
"event_media_format": "PORTRAIT",
"event_media_formtype": "mp4",
"event_media_creator": "4806fde3-081a-407f-a400-9dcad5743305",
"event_media_created_at": "2023-09-18T14:23:21.788603Z",
"event_media_thumb": "https://api.thenights.app/media/2023/9/18/36ebde2e-ae1e-4d58-a408-eef6b88b9dc6.webp",
"event_media_flames": null,
"event_media_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99"
},
{
"event_media_id": "c6933a1b-2888-4dc1-9fec-5fb1c749de20",
"event_media_media": "https://api.thenights.app/media/2023/9/18/4120b297-2e00-41a3-b036-55416300ffba.AD0D07A4-1DDD-48EC-8E53-41789B91E697.jpg",
"event_media_type": "IMAGE",
"event_media_format": "UNDEFINED",
"event_media_formtype": "AD0D07A4-1DDD-48EC-8E53-41789B91E697.jpg",
"event_media_creator": "4806fde3-081a-407f-a400-9dcad5743305",
"event_media_created_at": "2023-09-18T14:23:22.051419Z",
"event_media_thumb": "https://api.thenights.app/media/2023/9/18/4120b297-2e00-41a3-b036-55416300ffba.AD0D07A4-1DDD-48EC-8E53-41789B91E697.jpg",
"event_media_flames": null,
"event_media_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99"
},
{
"event_media_id": "8ddef525-8a9e-4ab7-bdc3-65ade4d0a1b1",
"event_media_media": "https://api.thenights.app/media/2023/9/18/4640bdd6-39f5-4d77-8a8a-d175293b0f53.212DB743-CF89-4BB3-A3DD-ACFD8F823F26.jpg",
"event_media_type": "IMAGE",
"event_media_format": "UNDEFINED",
"event_media_formtype": "212DB743-CF89-4BB3-A3DD-ACFD8F823F26.jpg",
"event_media_creator": "4806fde3-081a-407f-a400-9dcad5743305",
"event_media_created_at": "2023-09-18T14:23:26.689923Z",
"event_media_thumb": "https://api.thenights.app/media/2023/9/18/4640bdd6-39f5-4d77-8a8a-d175293b0f53.212DB743-CF89-4BB3-A3DD-ACFD8F823F26.jpg",
"event_media_flames": null,
"event_media_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99"
},
{
"event_media_id": "73b9dfb6-c54a-45f6-a942-afc53721eaf9",
"event_media_media": "https://api.thenights.app/media/2023/9/18/e110e1e7-450b-45bf-851f-6f96a80f8e63.BC945397-4E2A-42ED-8F59-D34F206B59A4.jpg",
"event_media_type": "IMAGE",
"event_media_format": "UNDEFINED",
"event_media_formtype": "BC945397-4E2A-42ED-8F59-D34F206B59A4.jpg",
"event_media_creator": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"event_media_created_at": "2023-09-18T14:24:45.088425Z",
"event_media_thumb": "https://api.thenights.app/media/2023/9/18/e110e1e7-450b-45bf-851f-6f96a80f8e63.BC945397-4E2A-42ED-8F59-D34F206B59A4.jpg",
"event_media_flames": null,
"event_media_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99"
},
{
"event_media_id": "c9775709-344b-47d3-b355-80ccc653b5d2",
"event_media_media": "https://api.thenights.app/media/2023/9/18/af5113c1-2bdc-45a6-b274-f9b2107e681c.mp4",
"event_media_type": "VIDEO",
"event_media_format": "LANDSCAPE",
"event_media_formtype": "mp4",
"event_media_creator": "aceebf43-4aa9-4bb8-bd1d-7538a174654b",
"event_media_created_at": "2023-09-18T14:25:20.919056Z",
"event_media_thumb": "https://api.thenights.app/media/2023/9/18/11a69c80-77e7-4572-a52b-2cd3d231be27.webp",
"event_media_flames": null,
"event_media_event_id": "d876d881-e780-4daa-8bad-9679eaf4fe99"
}
]
}
Error Response
Code: 400 Bad Request
| Parameter | Type | Description |
|---|---|---|
| detail | String | occurs when no event exists with id event_id |
Technical
The endpoint fetches the event with corresponding event_id from the database as a django database object. Checks weather the event is still running and updates the status if necessary. Futhermore, a view will be added to the event. Additionally, the view will be timestamped withing the analytics. Lastly, the event is returned in json format.