editCustomLink

fun editCustomLink(link: CustomRefyLink, title: String, description: String, resources: Map<String, String>, fields: Map<String, String>, hasUniqueAccess: Boolean = false, expiredTime: CustomRefyLink.ExpiredTime = ExpiredTime.NO_EXPIRATION): JSONObject

Function to execute the request to edit a custom link

Return

the result of the request as JSONObject

Parameters

link

: the link to edit

title

: title of the link

description

: description of the link

resources

: the resources to share with the link

fields

: the fields used to protect the resources with a validation form

hasUniqueAccess

: whether the link, when requested for the first time, must be deleted and no more accessible

expiredTime

: when the link expires and automatically deleted


fun editCustomLink(linkId: String, title: String, description: String, resources: Map<String, String>, fields: Map<String, String>, hasUniqueAccess: Boolean = false, expiredTime: CustomRefyLink.ExpiredTime = ExpiredTime.NO_EXPIRATION): JSONObject

Function to execute the request to edit a custom link

Return

the result of the request as JSONObject

Parameters

linkId

: the identifier of the link to edit

title

: title of the link

description

: description of the link

resources

: the resources to share with the link

fields

: the fields used to protect the resources with a validation form

hasUniqueAccess

: whether the link, when requested for the first time, must be deleted and no more accessible

expiredTime

: when the link expires and automatically deleted