Field (Match) Event Types
new_event-type
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
new_event-type
parameters*
JSON
check method parameters
new_event-type Method Parameters
fieldId
string
The Match Id we want to assign the prize.
eventTypeName
string
The event type name (e.g. "pass").
eventTypePoints
string
The number of points to assign when the event is detected on a specific cube (e.g. "100").
new_event-type API Call Example
new_event-type Call Response
When the API call is successfully executed, it returns the evenTypeId
for the newly created event type (to be used when registering events).
list_event-types
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_event-types Method Parameters (optional)
fieldId
string
The Field Id to get the list of events.
list_match-prizes API Call Example
list_event-types Call Response
When the API call is successfully executed, it returns the field available events.
update_event-type
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
update_event-type
parameters*
JSON
check method parameters
update_event-type Method Parameters
eventTypeId
string
The Event Type Id we want to update the assigned points.
fieldId
string
The Field Id the event is linked to.
eventTypePoints
string
The new number points assigned to the event (e.g. "1000")
update_event-type API Call Example
update_match-prize Call Response
When the API call is executed without errors, it returns a successful status code.
delete_event-type
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
delete_event-type
parameters*
JSON
check method parameters
delete_event-type Method Parameters
eventTypeId
string
The Event Type Id if the event we want to delete.
fieldId
string
The Field Id the event is linked to.
delete_event-type API Call Example
delete_event-type Call Response
When the API call is executed without errors, it returns a successful status code.
Last updated