edit

@PatchMapping(headers = "token", path = "/{" + COLLECTION_IDENTIFIER_KEY + "}")
open fun edit(@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 edit a collection

Return

the response of the request as String

Parameters

userId

: the identifier of the user

token

: the token of the user

payload

: payload of the request


                             {
                                 "title" : "title of the collection" -> [String],
                                 "description" : "the description of the collection" -> [String],
                                 "color" : "the color of the collection" -> [String],
                                 "links" : ["the links to attach"] -> List[String]
                             }