Portal Events
The Portal Events API allows the user to access inventory lists for events. It pulls and shares data with our other cloud services such as Data Management and the Portal.
Security
jwt-bearer-token
apiKey | API Key |
|---|---|
Name | Authorization |
In | header |
Endpoints
GET /{companyid}/events
Summary
Get the list of events for a specific company.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
path |
| string | Yes | The identifier (ID) of the company |
query |
| number | No | The documents to skip before returning |
query |
| number | No | The maximum documents to return |
query |
| string | No | A filter expression in OData v4 format |
query |
| string | No | An order by expression in OData v4 format |
query |
| string | No | Select expression in OData v4 format (Cannot work on |
query |
| boolean | No | Is there need to get actual event related sites |
query |
| string | No | A path array string (split with ',') in the lodash pick expression |
Response
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
401 | Invalid token | |
403 | Forbidden error | |
500 | Internal Server Error |
GET /{companyid}/events/{event_id}
Summary
Get the detail information of an event for a specific company.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
path |
| string | Yes | The identifier (ID) of the company |
path |
| string | Yes | The ID of the event |
Response
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
401 | Invalid token | |
403 | Forbidden error | |
404 | Not Found | |
500 | Internal Server Error |
POST /{companyid}/events
Summary
Create the event.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
path |
| string | Yes | The identifier (ID) of the company |
body |
| Yes | The JSON formatted request |
Response
Code | Description | Schema |
|---|---|---|
201 | Success | |
400 | Bad request, for more information look at body error | |
401 | Invalid token | |
403 | Forbidden error | |
500 | Internal Server Error |
PUT /{companyid}/events/{event_id}
Summary
Update the event by the event_id.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
path |
| string | Yes | The identifier (ID) of the company |
path |
| string | Yes | The ID of the event |
body |
| Yes | The JSON formatted request |
Response
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request, for more information look at body error | |
401 | Invalid token | |
403 | Forbidden error | |
404 | Not Found | |
500 | Internal Server Error |
DELETE /{companyid}/events/{event_id}
Summary
Delete the event by the event_id.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
path |
| string | Yes | The identifier (ID) of the company |
path |
| string | Yes | The ID of the event |
Response
Code | Description | Schema |
|---|---|---|
204 | Success | |
400 | Bad request, for more information look at body error | |
401 | Invalid token | |
403 | Forbidden error | |
404 | Not Found | |
500 | Internal Server Error |
Data Models
events_document
Field Name | Type | Description |
|---|---|---|
| ||
| number | The total number of events with the current filter |
event_external_create
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The event name |
| string | No | The event description |
| string | Yes | The event status |
| boolean | Yes | If false, it means that the event will exist within one day |
| string | Yes | The |
| No | The availability data for the event. The default is | |
| boolean | No | If false, it means that the event will not display in the suite spot |
| Yes | ||
| No | Advanced Day Ordering (ADO) | |
| No | Event Day Ordering (EDO) | |
| string | No |
event_external_update
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The event name |
| string | No | The event description |
| string | No | The event status |
| boolean | No | If false, it means that the event will exist within one day |
| string | No | The |
| No | The availability data for the event. The default is | |
| boolean | No | If false, it means that the event will not display in suite spot |
| Yes | ||
| No | Advanced Day Ordering (ADO) | |
| No | Event Day Ordering (EDO) | |
| string | Yes |
event_document
Field Name | Type | Required | Description |
|---|---|---|---|
| boolean | No | The marking property is the essence of active documents. Sets in |
| boolean | Yes | The marking property is the essence of active documents. Sets in |
| string | No | The identifier (ID) of the company who owns the document |
| string | Yes | The event name |
| string | No | The event description |
| string | Yes | The event status |
| boolean | Yes | If false, it means that the event will exist within one day |
| string | Yes | The |
| No | The availability data for the event. The default is | |
| boolean | No | If false, it means that the event will not display in suite spot |
| Yes | ||
| No | Advanced Day Ordering (ADO) | |
| No | Event Day Ordering (EDO) | |
| string | No | |
| string | No | The auto-assigned system document ID |
| No | ||
| string | No | The last date and time the document was updated |
| string | No | The ID of the OPRA user or site that created this document |
| string | No | The last date and time the document was updated |
| string | No | The ID of the OPRA user or site that last updated this document |
availability_conditions
Field Name | Type | Description |
|---|---|---|
| string | The available condition. Enum: |
| When in event list, type is [entity_id] (site entity identifier) When in event detail, type is [site] | The related sites array |
event_day
Field Name | Type | Description |
|---|---|---|
| string | The event start in Coordinated Universal Time (UTC) date and time (ISO format) |
| string | The event end in UTC date and time (ISO format) |
advanced_day_ordering
Field Name | Type | Description |
|---|---|---|
| string | Coordinated Universal Time (UTC) date and time (ISO format) |
| string | UTC date and time (ISO format) |
site
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The auto-assigned system document identifier (ID) |
| string | No | |
| string | No |
_id
Field Name | Type | Description |
|---|---|---|
| string | The auto-assigned system document identifier (ID) |
name
Field Name | Type | Description |
|---|---|---|
| string |
status
Field Name | Type | Description |
|---|---|---|
| string | The event status. Enum: |
company_id
Field Name | Type | Description |
|---|---|---|
| string | The identifier (ID) of the company who owns the document |
entity_id
Field Name | Type | Description |
|---|---|---|
| string | The auto-assigned unique identifier (UID) of this entity, set on creation. All future versions of this entity will share the same |
is_active
Field Name | Type | Description |
|---|---|---|
| boolean | The marking property is the essence of active documents. Sets in |
created_by
Field Name | Type | Description |
|---|---|---|
| string | The identifier (ID) of the OPRA user or site that created this document |
updated_by
Field Name | Type | Description |
|---|---|---|
| string | The identifier (ID) of the OPRA user or site that last updated this document |
created_at
Field Name | Type | Description |
|---|---|---|
| string | The last date and time the document was updated |
updated_at
Field Name | Type | Description |
|---|---|---|
| string | The last date and time the document was updated |