[POST] /award-skin

Route Purpose: This Route appends a skin ID to a player in the PlayerSkins table.

Input Parameters:

  • playerID (int): Unique identifier of the player.

  • skinID (int): Unique identifier of the skin to be assigned.

Functionality:

  • Validates the playerID and skinID.

  • Checks if the player already owns the skin.

  • Appends the skinID to the PlayerSkins table for the given playerID.

  • Ensures database integrity and prevents duplicates.

Example Usage:

AppendPlayerSkin(playerID: 1234, skinID: 7);

Database Table Structure: PlayerSkins

Column
Type
Description

playerID

int

Unique player identifier

skinID

int

Unique skin identifier

Last updated