You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/files_sharing/openapi.json
+77Lines changed: 77 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,9 @@
129
129
},
130
130
"upload_files_drop": {
131
131
"type": "boolean"
132
+
},
133
+
"custom_tokens": {
134
+
"type": "boolean"
132
135
}
133
136
}
134
137
},
@@ -2313,6 +2316,11 @@
2313
2316
"type": "string",
2314
2317
"nullable": true,
2315
2318
"description": "if the share should be send by mail. Considering the share already exists, no mail will be send after the share is updated. You will have to use the sendMail action to send the mail."
2319
+
},
2320
+
"token": {
2321
+
"type": "string",
2322
+
"nullable": true,
2323
+
"description": "New token"
2316
2324
}
2317
2325
}
2318
2326
}
@@ -3833,6 +3841,75 @@
3833
3841
}
3834
3842
}
3835
3843
}
3844
+
},
3845
+
"/ocs/v2.php/apps/files_sharing/api/v1/token": {
3846
+
"get": {
3847
+
"operationId": "shareapi-generate-token",
3848
+
"summary": "Get a unique share token",
3849
+
"tags": [
3850
+
"shareapi"
3851
+
],
3852
+
"security": [
3853
+
{
3854
+
"bearer_auth": []
3855
+
},
3856
+
{
3857
+
"basic_auth": []
3858
+
}
3859
+
],
3860
+
"parameters": [
3861
+
{
3862
+
"name": "OCS-APIRequest",
3863
+
"in": "header",
3864
+
"description": "Required to be true for the API request to pass",
:helper-text="t('files_sharing', 'Set the public share link token to something easy to remember or generate a new token. It is not recommended to use a guessable token for shares which contain sensitive information.')"
116
+
show-trailing-button
117
+
:trailing-button-label="loadingToken ? t('files_sharing', 'Generating…') : t('files_sharing', 'Generate new token')"
0 commit comments