leave

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

Method to leave from 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 from leave