delete

@DeleteMapping(headers = "token", path = "/{" + TEAM_IDENTIFIER_KEY + "}")
open fun delete(@RequestHeader(value = "token") token: String, @PathVariable(value = "user_id") userId: String, @PathVariable(value = "team_id") teamId: String): String

Method to delete a team

Return

the response of the request as String

Parameters

token

: the token of the user

userId

: the identifier of the user

teamId

: the identifier of the team to delete