Match Prizes
new_match-prize
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
new_match-prize
parameters*
JSON
check method parameters
new_match-prize Method Parameters
matchId*
string
The Match Id we want to assign the prize.
calendarId*
string
Calendar Id of the match.
position*
number
1, 2 or 3 for first, second and third prize.
name*
string
The prize name (e.g. FODEN SIGNED FRAME)
description*
string
Prize description (e.g. Phil Foden, known for his incredible..)
snapshot*
string
An image base64 encoded string to announce the match.
htmlDescription
string
The HTML description of the prize (e.g. <div><p>The ...)
image1
string
An image base64 encoded string.
image2
string
An image base64 encoded string.
image3
string
An image base64 encoded string.
new_match-prize API Call Example
new_match-prize Call Response
When the API call is successfully executed, it returns the prizeId
for the newly created prize.
list_match-prizes
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
list_match-prizes
parameters*
JSON
check method parameters
list_match-prizes Method Parameters (optional)
matchId
string
The Match Id we want to list the prizes.
list_match-prizes API Call Example
list_match-prizes Call Response
When the API call is successfully executed, it returns the match prizes, including the image IPFS url.
update_match-prize
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
update-match-prize
parameters*
JSON
check method parameters
update_match-prize Method Parameters
matchId*
string
The Match Id we want to assign the prize.
calendarId*
string
Calendar Id of the match.
prizeId*
string
The prize Id you get when creating a new match prize.
name
string
The prize name (e.g. FODEN SIGNED FRAME)
description
string
Prize description (e.g. Phil Foden, known for his incredible..)
snapshot
string
An image base64 encoded string to announce the match.
htmlDescription
string
The HTML description of the prize (e.g. <div><p>The ...)
image1
string
An image base64 encoded string.
image2
string
An image base64 encoded string.
image3
string
An image base64 encoded string.
update_match-prize API Call Example
update_match-prize Call Response
When the API call is executed without errors, it returns a successful status code.
delete_match-prize
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
delete_match-prize
parameters*
JSON
check method parameters
delete_match-prize Method Parameters
prizeId
string
The Prize Id to delete.
delete_match-prize API Call Example
delete_match-prize Call Response
When the API call is executed without errors, it returns a successful status code.
Last updated
Was this helpful?