Skip to main content
POST
/
game-configs
Create a game config
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>"
}

Authorizations

x-api-token
string
header
required

Headers

x-language
string

The language for the initial content of the game config. If not provided, the default organisation language is used.

Body

application/json

The input required to create a game configuration

gameType
enum<string>
required

The type of game

Available options:
memory,
catch
details
Details Create Input · object
required

Input for creating entity details with required title

gameConfig
object
required

Response

Successful response

A Nudj game configuration

id
string
required

The id of the game configuration

organisationId
string
required

The organisation that the game configuration belongs to

details
Details · object
required

The details of this game configuration such as title and description

gameType
enum<string>
required

The type of game

Available options:
memory,
catch
gameConfig
object
required

Raw JSON game configuration

createdAt
string
required

The date when this game configuration was created

updatedAt
string

The date when this game configuration was last updated