ocs_modify_share: Modifies properties of a share

View source: R/ocs.R

ocs_modify_shareR Documentation

Modifies properties of a share

Description

If a parameter omitted or is NULL, then the coresponding property is not modified.

Usage

ocs_modify_share(
  req,
  id,
  password = NULL,
  permissions = NULL,
  public_upload = NULL,
  expire_date = NULL,
  label = NULL,
  note = NULL,
  send_mail = NULL,
  attributes = NULL
)

Arguments

req

WebDAV request as returned by wd_connect

id

share id

password

optional password for link and e-mail shares

permissions

integer (1:read, 2:modify, 4:, 8:, 16:share)

public_upload

TRUE if public upload should be enabled

expire_date

expiration date as string in the format YYYY-MM-DD

label

label for the share

note

note for the share

send_mail

if TRUE the user is notified via e-mail

attributes

optional attributes

Value

data.frame with the share properties

Examples

## Not run: 
r <- wd_connect("https://example.com/remote.php/dav/files/johndoe")
ocs_modify_share(r, 12345, permissions = 31, expire_date = "2025-11-01")

## End(Not run)


rdav documentation built on Nov. 1, 2025, 3:01 a.m.