Global Commands

Get global commands

get

Retrieves all global commands for the specified store.

Authorizations
Path parameters
storeIdstring · flake-idRequired

The ID of the store to retrieve this data for.

Example: 411486491630370816
Responses
200
OK
application/json
get
GET /v1/stores/{storeId}/global-commands HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "id": "411486491630370816",
    "store_id": "411486491630370816",
    "stage": "invalid",
    "content": "text",
    "online_only": true,
    "override_execute_on_gameserver_ids": [
      "411486491630370816"
    ],
    "created_at": "2025-08-01T19:19:32.599Z",
    "created_by": {
      "type": "anonymous",
      "id": "411486491630370816"
    },
    "updated_at": "2025-08-01T19:19:32.599Z",
    "updated_by": {
      "type": "anonymous",
      "id": "411486491630370816"
    }
  }
]

Create global command

post

Creates a global command for a store.

Authorizations
Path parameters
storeIdstring · flake-idRequired

The ID of the store to create this data for.

Example: 411486491630370816
Body

Data transfer object used for creating new global commands or updating existing ones. Supports partial updates following PATCH semantics.

stagestring · enumRequired

Defines the stages at which product commands can be executed.

Possible values:
contentstringRequired

The command content to be executed.

online_onlybooleanRequired

Indicates whether the command should only be executed when the player is online.

override_execute_on_gameserver_idsstring · flake-id[] | nullableOptional

List of specific game server IDs where this command should be executed.

Example: 411486491630370816
Responses
200
OK
application/json
post
POST /v1/stores/{storeId}/global-commands HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 115

{
  "stage": "invalid",
  "content": "text",
  "online_only": true,
  "override_execute_on_gameserver_ids": [
    "411486491630370816"
  ]
}
{
  "id": "411486491630370816",
  "store_id": "411486491630370816",
  "stage": "invalid",
  "content": "text",
  "online_only": true,
  "override_execute_on_gameserver_ids": [
    "411486491630370816"
  ],
  "created_at": "2025-08-01T19:19:32.599Z",
  "created_by": {
    "type": "anonymous",
    "id": "411486491630370816"
  },
  "updated_at": "2025-08-01T19:19:32.599Z",
  "updated_by": {
    "type": "anonymous",
    "id": "411486491630370816"
  }
}

Delete global command

delete

Deletes a global command for a store.

Authorizations
Path parameters
storeIdstring · flake-idRequired

The ID of the store to delete this data for.

Example: 411486491630370816
globalCommandIdstring · flake-idRequired

The ID of the command to delete.

Example: 411486491630370816
Responses
204
No Content
delete
DELETE /v1/stores/{storeId}/global-commands/{globalCommandId} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*

No content

Update global command

patch

Updates a global command for a store.

Authorizations
Path parameters
storeIdstring · flake-idRequired

The ID of the store to update this data for.

Example: 411486491630370816
globalCommandIdstring · flake-idRequiredExample: 411486491630370816
Body

Data transfer object used for creating new global commands or updating existing ones. Supports partial updates following PATCH semantics.

stagestring · enumRequired

Defines the stages at which product commands can be executed.

Possible values:
contentstringRequired

The command content to be executed.

online_onlybooleanRequired

Indicates whether the command should only be executed when the player is online.

override_execute_on_gameserver_idsstring · flake-id[] | nullableOptional

List of specific game server IDs where this command should be executed.

Example: 411486491630370816
Responses
200
OK
application/json
patch
PATCH /v1/stores/{storeId}/global-commands/{globalCommandId} HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 115

{
  "stage": "invalid",
  "content": "text",
  "online_only": true,
  "override_execute_on_gameserver_ids": [
    "411486491630370816"
  ]
}
{
  "id": "411486491630370816",
  "store_id": "411486491630370816",
  "stage": "invalid",
  "content": "text",
  "online_only": true,
  "override_execute_on_gameserver_ids": [
    "411486491630370816"
  ],
  "created_at": "2025-08-01T19:19:32.599Z",
  "created_by": {
    "type": "anonymous",
    "id": "411486491630370816"
  },
  "updated_at": "2025-08-01T19:19:32.599Z",
  "updated_by": {
    "type": "anonymous",
    "id": "411486491630370816"
  }
}

Was this helpful?