createCustomLinkPayload
private fun createCustomLinkPayload(title: String, description: String, resources: Map<String, String>, fields: Map<String, String>, hasUniqueAccess: Boolean, expiredTime: CustomRefyLink.ExpiredTime): APIRequest.Params
Function to create a payload for the custom link creation/edit actions
Return
the payload as Params
Parameters
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