Classic APIs
ClassicGamePassesApi
createGamePass

createGamePass

Creates a game pass.

Parameters

NameTypeDescription
universeIdIdentifierThe ID of the universe to get a game pass in.
namestringThe name for the game pass.
descriptionstringThe description for the game pass.
icon?string | FileThe icon for the game pass.

Example

const { data: gamePassId } = await ClassicGamePassesApi.createGamePass({
  universeId: 1685831367,
  name: "My Pass",
  description: "Lorem Ipsum...",
}); 

Endpoint

POST /v1/game-passes