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: TeamsHelper.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

: payload of the request formatted by SpringBoot as TeamPayload