"description":"Only get shares with the current user",
"schema":{
"type":"string",
"default":"false"
}
},
{
"name":"reshares",
"in":"query",
"description":"Only get shares by the current user and reshares",
"schema":{
"type":"string",
"default":"false"
}
},
{
"name":"subfiles",
"in":"query",
"description":"Only get all shares in a folder",
"schema":{
"type":"string",
"default":"false"
}
},
{
"name":"path",
"in":"query",
"description":"Get shares for a specific path",
"schema":{
"type":"string",
"default":""
}
},
{
"name":"include_tags",
"in":"query",
"description":"Include tags in the share",
"schema":{
"type":"string",
"default":"false"
"requestBody":{
"required":false,
"content":{
"application/json":{
"schema":{
"type":"object",
"properties":{
"shared_with_me":{
"type":"string",
"default":"false",
"description":"Only get shares with the current user"
},
"reshares":{
"type":"string",
"default":"false",
"description":"Only get shares by the current user and reshares"
},
"subfiles":{
"type":"string",
"default":"false",
"description":"Only get all shares in a folder"
},
"path":{
"type":"string",
"default":"",
"description":"Get shares for a specific path"
},
"include_tags":{
"type":"string",
"default":"false",
"description":"Include tags in the share"
}
}
}
}
},
}
},
"parameters":[
{
"name":"OCS-APIRequest",
"in":"header",
@ -1712,108 +1692,76 @@
"basic_auth":[]
}
],
"parameters":[
{
"name":"path",
"in":"query",
"description":"Path of the share",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"permissions",
"in":"query",
"description":"Permissions for the share",
"schema":{
"type":"integer",
"format":"int64",
"nullable":true
}
},
{
"name":"shareType",
"in":"query",
"description":"Type of the share",
"schema":{
"type":"integer",
"format":"int64",
"default":-1
}
},
{
"name":"shareWith",
"in":"query",
"description":"The entity this should be shared with",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"publicUpload",
"in":"query",
"description":"If public uploading is allowed",
"schema":{
"type":"string",
"default":"false"
}
},
{
"name":"password",
"in":"query",
"description":"Password for the share",
"schema":{
"type":"string",
"default":""
}
},
{
"name":"sendPasswordByTalk",
"in":"query",
"description":"Send the password for the share over Talk",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"expireDate",
"in":"query",
"description":"The expiry date of the share in the user's timezone at 00:00. If $expireDate is not supplied or set to `null`, the system default will be used.",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"note",
"in":"query",
"description":"Note for the share",
"schema":{
"type":"string",
"default":""
}
},
{
"name":"label",
"in":"query",
"description":"Label for the share (only used in link and email)",
"schema":{
"type":"string",
"default":""
}
},
{
"name":"attributes",
"in":"query",
"description":"Additional attributes for the share",
"schema":{
"type":"string",
"nullable":true
"requestBody":{
"required":false,
"content":{
"application/json":{
"schema":{
"type":"object",
"properties":{
"path":{
"type":"string",
"nullable":true,
"description":"Path of the share"
},
"permissions":{
"type":"integer",
"format":"int64",
"nullable":true,
"description":"Permissions for the share"
},
"shareType":{
"type":"integer",
"format":"int64",
"default":-1,
"description":"Type of the share"
},
"shareWith":{
"type":"string",
"nullable":true,
"description":"The entity this should be shared with"
},
"publicUpload":{
"type":"string",
"default":"false",
"description":"If public uploading is allowed"
},
"password":{
"type":"string",
"default":"",
"description":"Password for the share"
},
"sendPasswordByTalk":{
"type":"string",
"nullable":true,
"description":"Send the password for the share over Talk"
},
"expireDate":{
"type":"string",
"nullable":true,
"description":"The expiry date of the share in the user's timezone at 00:00.\n If $expireDate is not supplied or set to `null`, the system default will be used."
},
"note":{
"type":"string",
"default":"",
"description":"Note for the share"
},
"label":{
"type":"string",
"default":"",
"description":"Label for the share (only used in link and email)"
},
"attributes":{
"type":"string",
"nullable":true,
"description":"Additional attributes for the share"
}
}
}
}
},
}
},
"parameters":[
{
"name":"OCS-APIRequest",
"in":"header",
@ -1958,16 +1906,26 @@
"basic_auth":[]
}
],
"parameters":[
{
"name":"path",
"in":"query",
"description":"Path all shares will be relative to",
"required":true,
"schema":{
"type":"string"
"requestBody":{
"required":true,
"content":{
"application/json":{
"schema":{
"type":"object",
"required":[
"path"
],
"properties":{
"path":{
"type":"string",
"description":"Path all shares will be relative to"
}
}
}
}
},
}
},
"parameters":[
{
"name":"OCS-APIRequest",
"in":"header",
@ -2133,20 +2091,24 @@
"basic_auth":[]
}
],
"parameters":[
{
"name":"include_tags",
"in":"query",
"description":"Include tags in the share",
"schema":{
"type":"integer",
"default":0,
"enum":[
0,
1
]
"requestBody":{
"required":false,
"content":{
"application/json":{
"schema":{
"type":"object",
"properties":{
"include_tags":{
"type":"boolean",
"default":false,
"description":"Include tags in the share"
}
}
}
}
},
}
},
"parameters":[
{
"name":"id",
"in":"path",
@ -2242,89 +2204,65 @@
"basic_auth":[]
}
],
"parameters":[
{
"name":"permissions",
"in":"query",
"description":"New permissions",
"schema":{
"type":"integer",
"format":"int64",
"nullable":true
}
},
{
"name":"password",
"in":"query",
"description":"New password",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"sendPasswordByTalk",
"in":"query",
"description":"New condition if the password should be send over Talk",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"publicUpload",
"in":"query",
"description":"New condition if public uploading is allowed",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"expireDate",
"in":"query",
"description":"New expiry date",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"note",
"in":"query",
"description":"New note",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"label",
"in":"query",
"description":"New label",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"hideDownload",
"in":"query",
"description":"New condition if the download should be hidden",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"attributes",
"in":"query",
"description":"New additional attributes",
"schema":{
"type":"string",
"nullable":true
"requestBody":{
"required":false,
"content":{
"application/json":{
"schema":{
"type":"object",
"properties":{
"permissions":{
"type":"integer",
"format":"int64",
"nullable":true,
"description":"New permissions"
},
"password":{
"type":"string",
"nullable":true,
"description":"New password"
},
"sendPasswordByTalk":{
"type":"string",
"nullable":true,
"description":"New condition if the password should be send over Talk"
},
"publicUpload":{
"type":"string",
"nullable":true,
"description":"New condition if public uploading is allowed"
},
"expireDate":{
"type":"string",
"nullable":true,
"description":"New expiry date"
},
"note":{
"type":"string",
"nullable":true,
"description":"New note"
},
"label":{
"type":"string",
"nullable":true,
"description":"New label"
},
"hideDownload":{
"type":"string",
"nullable":true,
"description":"New condition if the download should be hidden"
},
"attributes":{
"type":"string",
"nullable":true,
"description":"New additional attributes"
}
}
}
}
},
}
},
"parameters":[
{
"name":"id",
"in":"path",
@ -2884,79 +2822,63 @@
"basic_auth":[]
}
],
"parameters":[
{
"name":"search",
"in":"query",
"description":"Text to search for",
"schema":{
"type":"string",
"default":""
}
},
{
"name":"itemType",
"in":"query",
"description":"Limit to specific item types",
"schema":{
"type":"string",
"nullable":true
}
},
{
"name":"page",
"in":"query",
"description":"Page offset for searching",
"schema":{
"type":"integer",
"format":"int64",
"default":1
}
},
{
"name":"perPage",
"in":"query",
"description":"Limit amount of search results per page",
"schema":{
"type":"integer",
"format":"int64",
"default":200
}
},
{
"name":"shareType",
"in":"query",
"description":"Limit to specific share types",
"schema":{
"nullable":true,
"oneOf":[
{
"type":"integer",
"format":"int64"
},
{
"type":"array",
"items":{
"requestBody":{
"required":false,
"content":{
"application/json":{
"schema":{
"type":"object",
"properties":{
"search":{
"type":"string",
"default":"",
"description":"Text to search for"
},
"itemType":{
"type":"string",
"nullable":true,
"description":"Limit to specific item types"
},
"page":{
"type":"integer",
"format":"int64"
"format":"int64",
"default":1,
"description":"Page offset for searching"
},
"perPage":{
"type":"integer",
"format":"int64",
"default":200,
"description":"Limit amount of search results per page"
},
"shareType":{
"nullable":true,
"description":"Limit to specific share types",
"oneOf":[
{
"type":"integer",
"format":"int64"
},
{
"type":"array",
"items":{
"type":"integer",
"format":"int64"
}
}
]
},
"lookup":{
"type":"boolean",
"default":false,
"description":"If a global lookup should be performed too"
}
}
]
}
},
{
"name":"lookup",
"in":"query",
"description":"If a global lookup should be performed too",