curl --request POST \
--url https://{subdomain}.nudj.cx/api/v2/admin/game-configs \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"gameType": "memory",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"gameConfig": {}
}
'{
"id": "<string>",
"organisationId": "<string>",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"gameType": "memory",
"gameConfig": {},
"createdAt": "<string>",
"updatedAt": "<string>"
}Create a new game configuration.
curl --request POST \
--url https://{subdomain}.nudj.cx/api/v2/admin/game-configs \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"gameType": "memory",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"gameConfig": {}
}
'{
"id": "<string>",
"organisationId": "<string>",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"gameType": "memory",
"gameConfig": {},
"createdAt": "<string>",
"updatedAt": "<string>"
}The language for the initial content of the game config. If not provided, the default organisation language is used.
The input required to create a game configuration
The type of game
memory, catch Input for creating entity details with required title
Show child attributes
The title of the entity
The description of the entity
Successful response
A Nudj game configuration
The id of the game configuration
The organisation that the game configuration belongs to
The details of this game configuration such as title and description
Show child attributes
The title of the entity
The description of the entity
The type of game
memory, catch The date when this game configuration was created
The date when this game configuration was last updated
Was this page helpful?