Phiên bản API Đồ thị

Application Uploads

Đọc

Bạn không thể thực hiện thao tác này trên điểm cuối này.

Tạo

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.

Bạn có thể tạo yêu cầu POST đến cạnh uploads từ các đường dẫn sau:
When posting to this edge, no Graph object will be created.

Thông số

Thông sốMô tả
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}
Giá trị mặc định: attachment

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

Kiểu trả về

Struct {
id: string,
}

Mã lỗi

LỗiMô tả
104Incorrect signature
100Invalid parameter
368The action attempted has been deemed abusive or is otherwise disallowed

Cập nhật

Bạn không thể thực hiện thao tác này trên điểm cuối này.

Xóa

Bạn không thể thực hiện thao tác này trên điểm cuối này.