Classic APIs
ClassicGamePassesApi
updateGamePass

updateGamePass

Updates a game pass.

Parameters

NameTypeDescription
gamePassIdIdentifierThe ID of the game pass to update.
name?stringThe new name for the game pass.
description?stringThe new description for the game pass.
icon?string | FileThe new icon for the game pass.
price?numberThe new price for the game pass.
isForSale?booleanIf the game pass should be for sale.

Example

const { data: success } = await ClassicGamePassesApi.updateGamePass({
  gamePassId: 9260480,
  name: "Donate",
  icon: "./gamePassIcon.png",
}); 

Endpoint

POST /v1/game-passes/{gamePassId}/details