create

@PostMapping(headers = "token" )
open fun create(    @RequestHeader(value = "token") token: String,     @PathVariable(value = "user_id") userId: String,     @RequestBody payload: Map<String, Any>): String

Method to create a new link

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


                             {
                                 "reference_link" : "the url of the link" -> [String],
                                 "description" : "the description of the link" -> [String]
                             }