share Collection With Teams

@PutMapping(headers = "token", path = ""/{" + COLLECTION_IDENTIFIER_KEY + "}/" + TEAMS_KEY" )
open fun shareCollectionWithTeams(    @RequestHeader(value = "token") token: String,     @PathVariable(value = "user_id") userId: String,     @PathVariable(value = "collection_id") collectionId: String,     @RequestBody payload: Map<String, Any>): String

Method to manage the teams where the collection is shared

Return

the response of the request as String

Parameters

userId

The identifier of the user

token

The token of the user

payload

The payload of the request


                             {
                                 "teams" : ["the teams of the collection"] -> List[String],
                             }