Download OpenAPI specification:Download
Information about games for Westfield centres.
Request an array of games filtered by allowed parameters.
| centre_id | string Example: centre_id=sanfrancisco¢re_id=sydney¢re_id=london Centre identifier. Request the centre zones with centre_id. Lowercase code name for a specific centre. |
| eligibility | Array of integers List of eligibility category Ids to be used for additional filtering of results. |
| fields | Array of strings Example: fields=_links Fields in response. Array that lists the fields requested. If empty or not supplied, all attributes will be returned. |
| page | number Default: 1 Example: page=2 Results page number. Specific page of results to request when paginating. |
| per_page | number <= 100 Default: 10 Example: per_page=25 Results per page. Number of items per result set when paginating. |
| sort | string Sort results by one or more fields. Change sort order by adding desc or asc after field name. Supported sort fields are: end_date, finishes_at, published_at, starts_at |
| status | string Enum: "pending" "scheduled" "published" "live" "expired" Filter games by status. |
| statuses | string Enum: "pending" "scheduled" "published" "live" "expired" Filter games by one or more statuses. |
| support_diffusion | Array of integers List of support diffusion category Ids to be used for additional filtering of results. |
{- "data": [
- {
- "_links": {
}, - "game_id": 0,
- "game_name": "string",
- "featured": true,
- "omnilab_game_id": "string",
- "published_at": "2020-01-01T17:17:00.000Z",
- "end_date": "2020-01-14T00:00:00.000Z",
- "support_diffusion": [
- 0
], - "eligibility": [
- 0
], - "status": "expired",
- "updated_at": "2020-03-05T12:40:55.648Z",
- "news_type_ids": [
- 0
]
}
], - "errors": { },
- "meta": {
- "api_version": "1",
- "available_locales": [
- "en-US",
- "en-GB",
- "en-FR"
], - "deprecation_information": {
- "deprecated_at": "2018-03-21T00:00:00Z",
- "goes_away_at": "2018-06-21T00:00:00Z",
}, - "origin": "CenterDirectoryService",
- "page": 1,
- "page_count": 10,
- "per_page": 25,
- "total": 100,
- "translatable_fields": [
- "name",
- "description",
- "sports.team_name"
]
}
}Request creation of a game from JSON data in the request body.
| Authorization required | string^[bB]earer [A-Za-z0-9]{64}$ Staff Access token type and token value. |
Data to create a game.
| centre_id required | string Centre the game belongs to |
| game_name required | string Game name |
| featured | boolean Featured |
| omnilab_game_id | string External ID for Omnilab game integration |
| published_at required | string <date-time> The date-time the game was published |
| end_date required | string <date-time> The date-time the game ends |
| support_diffusion required | Array of integers Identifiers of channel diffusion (web/mobile/digital directory). |
| eligibility | Array of integers Eligibility requirements of game. |
| news_type_ids | Array of integers List of news type category IDs associated with the game |
{- "centre_id": "string",
- "game_name": "string",
- "featured": true,
- "omnilab_game_id": "string",
- "published_at": "2020-01-01T17:17:00.000Z",
- "end_date": "2020-01-14T00:00:00.000Z",
- "support_diffusion": [
- 0
], - "eligibility": [
- 0
], - "news_type_ids": [
- 0
]
}{- "data": {
- "_links": {
}, - "game_id": 0,
- "game_name": "string",
- "featured": true,
- "omnilab_game_id": "string",
- "published_at": "2020-01-01T17:17:00.000Z",
- "end_date": "2020-01-14T00:00:00.000Z",
- "support_diffusion": [
- 0
], - "eligibility": [
- 0
], - "status": "expired",
- "updated_at": "2020-03-05T12:40:55.648Z",
- "news_type_ids": [
- 0
]
}, - "errors": { },
- "meta": {
- "api_version": "1",
- "available_locales": [
- "en-US",
- "en-GB",
- "en-FR"
], - "deprecation_information": {
- "deprecated_at": "2018-03-21T00:00:00Z",
- "goes_away_at": "2018-06-21T00:00:00Z",
}, - "origin": "CenterDirectoryService",
- "page": 1,
- "page_count": 10,
- "per_page": 25,
- "total": 100,
- "translatable_fields": [
- "name",
- "description",
- "sports.team_name"
]
}
}Request a single game.
| game_id required | integer Example: 58976 Game identifier. Request the game with game_id. |
| fields | Array of strings Example: fields=_links Fields in response. Array that lists the fields requested. If empty or not supplied, all attributes will be returned. |
{- "data": {
- "_links": {
}, - "game_id": 0,
- "game_name": "string",
- "featured": true,
- "omnilab_game_id": "string",
- "published_at": "2020-01-01T17:17:00.000Z",
- "end_date": "2020-01-14T00:00:00.000Z",
- "support_diffusion": [
- 0
], - "eligibility": [
- 0
], - "status": "expired",
- "updated_at": "2020-03-05T12:40:55.648Z",
- "news_type_ids": [
- 0
]
}, - "errors": { },
- "meta": {
- "api_version": "1",
- "available_locales": [
- "en-US",
- "en-GB",
- "en-FR"
], - "deprecation_information": {
- "deprecated_at": "2018-03-21T00:00:00Z",
- "goes_away_at": "2018-06-21T00:00:00Z",
}, - "origin": "CenterDirectoryService",
- "page": 1,
- "page_count": 10,
- "per_page": 25,
- "total": 100,
- "translatable_fields": [
- "name",
- "description",
- "sports.team_name"
]
}
}Request deletion of a game.
| game_id required | integer Example: 58976 Game identifier. Request the game with game_id. |
| Authorization required | string^[bB]earer [A-Za-z0-9]{64}$ Staff Access token type and token value. |
{- "data": { },
- "errors": {
- "base": [
- "access token is missing or invalid"
]
}, - "meta": {
- "api_version": "1"
}
}Request update of a game from JSON data in the request body.
| game_id required | integer Example: 58976 Game identifier. Request the game with game_id. |
| Authorization required | string^[bB]earer [A-Za-z0-9]{64}$ Staff Access token type and token value. |
Data to update a game.
| centre_id | string Centre the game belongs to |
| game_name | string Game name |
| featured | boolean Featured |
| omnilab_game_id | string External ID for Omnilab game integration |
| published_at | string <date-time> The date-time the game was published |
| end_date | string <date-time> The date-time the game ends |
| support_diffusion | Array of integers Identifiers of channel diffusion (web/mobile/digital directory). |
| eligibility | Array of integers Eligibility requirements of game. |
| news_type_ids | Array of integers List of news type category IDs associated with the game |
{- "centre_id": "string",
- "game_name": "string",
- "featured": true,
- "omnilab_game_id": "string",
- "published_at": "2020-01-01T17:17:00.000Z",
- "end_date": "2020-01-14T00:00:00.000Z",
- "support_diffusion": [
- 0
], - "eligibility": [
- 0
], - "news_type_ids": [
- 0
]
}{- "data": { },
- "errors": {
- "base": [
- "access token is missing or invalid"
]
}, - "meta": {
- "api_version": "1"
}
}