editSharedLink

abstract suspend fun editSharedLink(sharedLinkId: String, type: SharedLinkType? = null, permission: SharedLinkPermission? = null, password: String? = null, expires: String? = null, collaborators: List<CreateCollaboratorMeta>? = null): ShareOperationResult

Edits a shared link by sharedLinkId and configuration.

Parameters

type

Defines the logic of the shared link.

permission

Determines the capabilities of the user who can access the shared link.

password

Specified if the link type is "password protected".

expires

Sets the link expiration time. ISO format.

collaborators

Specified if the link type is "limited to a list of users".

Throws

If the configuration contains conflicting values (example: type is public; password is not null), then the method throws an exception.