GET api/events/{id}
GET /api/events/{id:guid} If successful returns event details and 200 OK Sets Etag header but as yet DOES NOT SUPPORT requests with "If-None-Match" header If Id is null or Guid.Empty returns 400 Bad Request If event not found in active event list in CRM with "show on web" set, returns 404 Not Found For errors contacting CRM returns 502 Bad Gateway All other errors 500
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Guid identifier of event from CRM |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
EventRepresentationName | Description | Type | Additional information |
---|---|---|---|
Id |
Unique identifier - same as in CRM |
globally unique identifier |
None. |
Name |
name of this event |
string |
None. |
VenueId |
Unique identifier of Venue - if no venue assigned yet will be Guid.Empty |
globally unique identifier |
None. |
TicketCapacity |
maximum number of tickets that can be sold |
integer |
None. |
TicketsAvailable |
Tickets still available |
integer |
None. |
Start | date |
None. |
|
Finish | date |
None. |
|
Price | decimal number |
None. |
|
Tags | Collection of string |
None. |
|
Links | Collection of Link |
None. |
Response Formats
application/json
{ "Id": "d5181147-d986-4eef-9b2e-4782fd886fd6", "Name": "sample string 2", "VenueId": "6b14ee34-c7bd-401a-a90e-274097be1714", "TicketCapacity": 4, "TicketsAvailable": 5, "Start": "2024-12-01T02:22:03.3503896+00:00", "Finish": "2024-12-01T02:22:03.3503896+00:00", "Price": 8.0, "Tags": [ "sample string 1", "sample string 2" ], "_links": [ { "Rel": "self", "Href": "~/events/d5181147-d986-4eef-9b2e-4782fd886fd6", "Title": null, "IsTemplated": false }, { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": false }, { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": false }, { "Rel": "venue", "Href": "~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue", "Title": null, "IsTemplated": false } ], "_embedded": null }
text/json
{ "Id": "d5181147-d986-4eef-9b2e-4782fd886fd6", "Name": "sample string 2", "VenueId": "6b14ee34-c7bd-401a-a90e-274097be1714", "TicketCapacity": 4, "TicketsAvailable": 5, "Start": "2024-12-01T02:22:03.3503896+00:00", "Finish": "2024-12-01T02:22:03.3503896+00:00", "Price": 8.0, "Tags": [ "sample string 1", "sample string 2" ], "_links": [ { "Rel": "self", "Href": "~/events/d5181147-d986-4eef-9b2e-4782fd886fd6", "Title": null, "IsTemplated": false }, { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": false }, { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": false }, { "Rel": "venue", "Href": "~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue", "Title": null, "IsTemplated": false }, { "Rel": "venue", "Href": "~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue", "Title": null, "IsTemplated": false } ], "_embedded": null }
application/xml
<EventRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSAT.WebServices.WebApp.Representations.Version1"> <Href xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">~/events/d5181147-d986-4eef-9b2e-4782fd886fd6</Href> <LinkName xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">sample string 11</LinkName> <Links xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal"> <Link> <Href>~/events/d5181147-d986-4eef-9b2e-4782fd886fd6</Href> <Rel>self</Rel> <Title i:nil="true" /> </Link> <Link> <Href>sample string 2</Href> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> <Link> <Href>sample string 2</Href> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> <Link> <Href>~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue</Href> <Rel>venue</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue</Href> <Rel>venue</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue</Href> <Rel>venue</Rel> <Title i:nil="true" /> </Link> </Links> <Rel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">sample string 9</Rel> <Finish>2024-12-01T02:22:03.3503896+00:00</Finish> <Id>d5181147-d986-4eef-9b2e-4782fd886fd6</Id> <Name>sample string 2</Name> <Price>8</Price> <Start>2024-12-01T02:22:03.3503896+00:00</Start> <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Tags> <TicketCapacity>4</TicketCapacity> <TicketsAvailable>5</TicketsAvailable> <VenueId>6b14ee34-c7bd-401a-a90e-274097be1714</VenueId> </EventRepresentation>
text/xml
<EventRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSAT.WebServices.WebApp.Representations.Version1"> <Href xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">~/events/d5181147-d986-4eef-9b2e-4782fd886fd6</Href> <LinkName xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">sample string 11</LinkName> <Links xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal"> <Link> <Href>~/events/d5181147-d986-4eef-9b2e-4782fd886fd6</Href> <Rel>self</Rel> <Title i:nil="true" /> </Link> <Link> <Href>sample string 2</Href> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> <Link> <Href>sample string 2</Href> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> <Link> <Href>~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue</Href> <Rel>venue</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue</Href> <Rel>venue</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue</Href> <Rel>venue</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue</Href> <Rel>venue</Rel> <Title i:nil="true" /> </Link> </Links> <Rel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">sample string 9</Rel> <Finish>2024-12-01T02:22:03.3503896+00:00</Finish> <Id>d5181147-d986-4eef-9b2e-4782fd886fd6</Id> <Name>sample string 2</Name> <Price>8</Price> <Start>2024-12-01T02:22:03.3503896+00:00</Start> <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Tags> <TicketCapacity>4</TicketCapacity> <TicketsAvailable>5</TicketsAvailable> <VenueId>6b14ee34-c7bd-401a-a90e-274097be1714</VenueId> </EventRepresentation>
application/hal+json
{ "Id": "d5181147-d986-4eef-9b2e-4782fd886fd6", "Name": "sample string 2", "VenueId": "6b14ee34-c7bd-401a-a90e-274097be1714", "TicketCapacity": 4, "TicketsAvailable": 5, "Start": "2024-12-01T02:22:03.3503896+00:00", "Finish": "2024-12-01T02:22:03.3503896+00:00", "Price": 8.0, "Tags": [ "sample string 1", "sample string 2" ], "_links": { "self": { "href": "/events/d5181147-d986-4eef-9b2e-4782fd886fd6" }, "sample string 1": { "href": "sample string 2", "title": "sample string 3" }, "venue": { "href": "/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue" } } }
application/hal+xml
<resource rel="sample string 9" href="~/events/d5181147-d986-4eef-9b2e-4782fd886fd6" name="sample string 11"> <link rel="sample string 1" href="sample string 2" /> <link rel="venue" href="~/events/d5181147-d986-4eef-9b2e-4782fd886fd6/venue" /> <Id>d5181147-d986-4eef-9b2e-4782fd886fd6</Id> <Name>sample string 2</Name> <VenueId>6b14ee34-c7bd-401a-a90e-274097be1714</VenueId> <TicketCapacity>4</TicketCapacity> <TicketsAvailable>5</TicketsAvailable> <Start>12/1/2024 2:22:03 AM</Start> <Finish>12/1/2024 2:22:03 AM</Finish> <Price>8</Price> </resource>