Update Share

nextcloud.update_share
ActionFiles & storageconnection required

Calls the Nextcloud API with the connection's credentials.

Change an existing share: its permissions, password, public-upload flag, expiry date or note. At least one of them must be given.

Connection

Required
Yes — the node will not save without one
Auth type
Username & password
Providers
Nextcloud
Secret shape
{"username": "…", "password": "<app password>"}
Config it needs
base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

6 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
share_id
The share id returned by nextcloud.create_share or nextcloud.list_shares.
stringYes———
permissions
Permission bitmask: 1 read, 2 update, 4 create, 8 delete, 16 share — added together (31 is everything). Leave blank for the server's default.
numberNo—1–31—
password
New password for a link or email share.
stringNo—credential materialcredential
public_upload
Turn upload-through-the-link on or off; leave unset to keep it as it is.
booleanNo———
expire_date
Expiry date as YYYY-MM-DD; leave blank for no expiry.
stringNo—matches \d{4}-\d{2}-\d{2}2026-01-31
note
A note shown to the people the share reaches.
stringNo———
  • At least one of permissions, password, public_upload, expire_date, note must be set.

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "expire_date": "2026-01-31"
}

Output

One shape.

result

FieldTypeExample
share_id
The share that was changed.
string—
id
The share id, used by get, update and delete.
string42
share_type
The numeric shareType Nextcloud recorded.
number—
uid_owner
The account that owns the shared item.
string—
share_with
The recipient; empty for a public link.
string—
path
The shared path.
string/Documents/report.pdf
item_type
'file' or 'folder'.
stringfile
permissions
The permission bitmask on the share.
number—
url
The public link URL, for a link or email share.
string—
token
The public link token, for a link or email share.
string—
expiration
When the share expires, or empty.
string—
status
Nextcloud's OCS status word.
stringok
status_code
The OCS meta statuscode: 100 on v1, 200 on v2.
number—
message
The OCS meta message, when the server set one.
string—
total_items
Total matching items, when the endpoint reports it.
string—
items_per_page
Page size, when the endpoint reports it.
string—
{
  "expiration": "",
  "id": "42",
  "item_type": "file",
  "items_per_page": "",
  "message": "",
  "path": "/Documents/report.pdf",
  "permissions": 0,
  "share_id": "",
  "share_type": 0,
  "share_with": "",
  "status": "ok",
  "status_code": 0,
  "token": "",
  "total_items": "",
  "uid_owner": "",
  "url": ""
}

See Update Share run in a workflow.

In a technical demo we add the Nextcloud connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.