edit

@PatchMapping(headers = "token", path = "/{" + LINK_IDENTIFIER_KEY + "}")
open fun edit(@RequestHeader(value = "token") token: String, @PathVariable(value = "user_id") userId: String, @PathVariable(value = "link_id") linkId: String, @RequestBody payload: Map<String, Any>): String

Method to edit an existing custom link

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 link" -> [String],
                                 "description" : "the description of the custom link" -> [String],
                                 "resources" : "the resources to share with the link" -> Map[String, String],
                                 "fields" : "the fields used to protect the resources with a validation form" -> Map[String, String],
                                 "hasUniqueAccess" : "whether the link, when requested for the first time, must be deleted and no more accessible" -> [boolean],
                                 "expiredTime" : "when the link expires and automatically deleted" -> [{ExpiredTime}],
                             }