Function
Modify sharing settings.
URI
PUT /koodrive/ose/v1/share/{shareId}
Table 1 Path Parameters Parameter | Mandatory | Type | Description |
|---|
shareId | Yes | String | Definition: Share ID, which is returned by the APIs for creating a share and querying the share list. Constraints: N/A Range: N/A Default Value: N/A |
Request Parameters
Table 3 Request body parameters Parameter | Mandatory | Type | Description |
|---|
extractCode | No | String | Definition: Set an access code. Constraints: A string of 8 characters Range: [0-9a-zA-Z] Default Value: N/A |
comment | No | String | Definition: Sharing message. Constraints: N/A Range: N/A Default Value: N/A |
validDays | Yes | Integer | Definition: Sharing validity period. The value 0 indicates that the sharing validity period is not set. Constraints: N/A Range: 0 to 365 Default Value: N/A |
Response Parameters
Status code: 200
Table 4 Response body parameters Parameter | Type | Description |
|---|
code | String | Response code. |
msg | String | Response information. |
shareLink | shareLink object | Sharing link information. |
Table 5 shareLink Parameter | Type | Description |
|---|
shareId | String | Sharing ID. |
shortUrl | String | Sharing link. |
extractCode | String | Access code. |
createTime | String | Creation time. |
updateTime | String | Modification time. |
expireTime | String | Expiration time. |
linkUrl | String | Sharing link. |
shareTime | String | Time when the file is shared. |
scope | Integer | Scope. |
displayName | String | Display name. |
status | Integer | Status. |
viewCnt | String | Number of views. |
downloadCnt | String | Download times. |
saveCnt | String | Save times. |
Example Requests
PUT /koodrive/ose/v1/share/{shareId}
{
"expireTime" : "2025-05-29T02:00:39.952Z",
"extractCode" : "MDg2K0vU",
"comment" : "123",
"validDays" : 9
} Example Responses
Status code: 200
OK
{
"shareLink" : {
"shareId" : "1689743054514187776",
"shortUrl" : "1689743054514187777",
"linkUrl" : "1689743054514187777",
"shareTime" : "2025-05-20T01:37:49.052Z",
"expireTime" : "2025-05-29T02:17:41.222Z",
"scope" : 1,
"extractCode" : "MDg2K0vU",
"displayName" : "jpeg_20250513_103635.jpeg",
"status" : 0,
"comment" : "123",
"ownerId" : "1681759180324844417",
"containerId" : "IAAB5thdWzxEoAsiA1681759183084696448",
"viewCnt" : 0,
"downloadCnt" : 0,
"saveCnt" : 0,
"updateTime" : "2025-05-20T02:17:41.222Z"
},
"code" : 0,
"msg" : "Success."
} Status Codes
Status Code | Description |
|---|
200 | OK |