Skip to main content
PATCH
/
game-configs
/
{id}
Update a game config
curl --request PATCH \
  --url https://{subdomain}.nudj.cx/api/v2/admin/game-configs/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '{
  "gameConfig": {},
  "details": {
    "title": "<string>",
    "description": "<string>",
    "light": {
      "primaryImageUrl": "<string>",
      "secondaryImageUrl": "<string>"
    },
    "dark": {
      "primaryImageUrl": "<string>",
      "secondaryImageUrl": "<string>"
    }
  }
}'
{
  "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 to update the game config in. Language-specific fields will be applied only for that language.

Path Parameters

id
string
required

The id of the game configuration to update

Body

application/json

The input required to update a game configuration

gameConfig
object

Raw JSON game configuration

details
object

Input for updating entity details with all fields optional

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
object
required

Used to describe an entity 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

I