图谱 API 版

Application Uploads

读取

你无法在此端点执行该操作。

创建

Create an upload session.

Upload session IDs returned by this endpoint can be used to upload large files, get the status of an upload session, or resume an interrupted session. See the Resumable Upload API document for complete usage instructions.

Requirements

TypeDescription

Access Tokens

User or System User. The app user who granted the token must have an Administrator or Developer role on the app.

Permissions

None.

你可以通过下列路径向 uploads 连线发出 POST 请求:
When posting to this edge, no Graph object will be created.

参数

参数描述
file_length
int64

The file length in bytes

file_name
RegexParam

The name of the file to be uploaded

file_type
RegexParam

The MIME type of the file to be uploaded

session_type
enum {attachment}
默认值:attachment

The type of upload session that is being requested by the app

返回类型

Struct {
id: string,
}

错误代码

错误描述
104Incorrect signature
100Invalid parameter
368The action attempted has been deemed abusive or is otherwise disallowed

更新

你无法在此端点执行该操作。

删除

你无法在此端点执行该操作。