add Viewer

@PostMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}/" + SESSION_KEY + "/" + MEMBERS_KEY", headers = [] )
open fun addViewer(@PathVariable(value = "id") userId: String, @RequestHeader(value = "token") token: String, @RequestBody payload: Map<String, String>): String

Method to add a new VIEWER in the system

Return

the result of the request as String

Parameters

userId

The identifier of the user

token

The token of the user

payload

The payload of the request


                                             {
                                                 "name" : "the name of the viewer" -> [String],
                                                 "surname": "the surname of the viewer" -> [String],
                                                 "email": "the email of the viewer" -> [String]
                                             }