createBattleAttempt mutation.
The mutation has one required argument - battleId.
Here is an example of the mutation execution:
BattleAttempt object will be returned.
BattleAttempt object
The object represents a battle attempt data. Each opponent can have only one attempt, a battle cannot be restarted.
BattleStatus options
The list of available BattleStatus options:
COMPLETED- indicates that the battle has been completed by the current API user; also includes the battles that are not completed by the opponent yet.DRAW- indicates a tie, meaning that both opponents have earned the same score and spent the same amount of time;FINISHED- indicates that ths battle has been finished by both rivals.IN_PROGRESS- indicates that the battle have been started, but not completed by the user yet;PENDING- indicates that the battle has not been started by the user yet;LOST- indicates that the user has lost the battle;WAITING_OPPONENT- indicates that the battle is finished by the initiator, but not completed by the opponent yet.WON- indicates that the user has won the battle.