leave Group

@DeleteMapping(path = ""/{" + GROUP_IDENTIFIER_KEY + "}" + LEAVE_GROUP_ENDPOINT", headers = [] )
open fun leaveGroup(@PathVariable(value = "id") id: String, @RequestHeader(value = "token") token: String, @PathVariable(value = "group_id") groupId: String, @RequestBody(required = false) payload: Map<String, String>): String

Method to leave from a group

Return

the result of the request as String

Parameters

id

The identifier of the user

token

The token of the user

groupId

The identifier of the group from leave

payload

The payload with the identifier of the admin, if required