All Products
Search
Document Center

Drive and Photo Service:CreateShareLink

Last Updated:Mar 26, 2026

Create a share.

Operation description

A share, also known as file sharing, is a file view container that exposes one or more files from user space to anonymous users. Anonymous users can access the files within the constraints of the share permissions.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /v2/share_link/create HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

Response elements

Element

Type

Description

Example

Examples

Success response

JSON format

{
  "share_id": "7JQX1FswpQ8",
  "share_pwd": "abcF123x",
  "drive_id": "1",
  "file_id_list": [
    "[\"xx\"]"
  ],
  "expiration": "2020-06-28T11:33:00.000+08:00",
  "expired": false,
  "created_at": "2019-08-20T06:51:27.292Z",
  "updated_at": "2019-08-20T06:51:27.292Z",
  "description": "videos",
  "share_name": "video-1.MP4",
  "creator": "c9b7a5aa04d14ae3867fdc886fa01da4",
  "status": "enabled",
  "preview_count": 10,
  "save_count": 2,
  "download_count": 5,
  "report_count": 0,
  "video_preview_count": 1,
  "access_count": 4,
  "disable_preview": false,
  "disable_save": false,
  "disable_download": false,
  "preview_limit": 100,
  "save_limit": 100,
  "download_limit": 100,
  "require_login": false,
  "share_all_files": true,
  "share_msg": "pwd: 123",
  "save_download_limit": 100,
  "office_editable": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.