edit

open fun edit(token: String, userId: String, itemId: String, payload: Map<String, Any>): String

Method to edit an existing item


@PostMapping(headers = "token", path = "/{" + TEAM_IDENTIFIER_KEY + "}" )
open fun edit(    @RequestHeader(value = "token") token: String,     @PathVariable(value = "user_id") userId: String,     @PathVariable(value = "team_id") teamId: String,     @ModelAttribute payload: TeamsService.TeamPayload): String

Method to edit a team

Return

the response of the request as String

Parameters

userId

The identifier of the user

token

The token of the user

teamId

The identifier of the team to edit

payload

The payload of the request formatted by SpringBoot as TeamPayload