全部產品
Search
文件中心

STAROps:CreateArtifactUploadToken

更新時間:Jul 27, 2026

建立產物上傳憑證。

介面說明

取得上傳內容所需連結,適用於大型檔案。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

POST /digitalEmployee/{name}/artifacts/uploadToken HTTP/1.1

路徑參數

名稱

類型

必填

描述

樣本值

name

string

數位員工名稱。

sample-agent

請求參數

名稱

類型

必填

描述

樣本值

artifactPath

string

產物上傳目錄,相對於數位員工產物根目錄;只能為空或 upload/ 下的目錄;未傳時預設使用 upload/{YYYY-MM-DD}/。

upload/2026-05-25/

返回參數

名稱

類型

描述

樣本值

object

requestId

string

請求 ID。

0A1B2C3D-4E5F-6789-ABCD-1234567890AB

artifactPath

string

伺服器端正規化後的邏輯上傳目錄,相對於數位員工產物根目錄。

upload/2026-05-25/

host

string

OSS 表單上傳位址。

https://example-bucket.oss-cn-shanghai.aliyuncs.com

dir

string

允許上傳的 OSS 物件前綴。

agents/123/sample-agent/home/starops/upload/2026-05-25/

accessId

string

OSS 上傳使用的 AccessKey ID。

LTAI******

policy

string

Base64 編碼後的 OSS Post Policy。

eyJleHBpcmF0aW9uIjoiMjAyNi0wNS0yMVQwODowMDowMFoifQ==

signature

string

OSS Post Policy 簽章。

abc123signature

successActionStatus

string

OSS 上傳成功狀態碼。

200

expire

integer

上傳憑證過期時間,Unix 時間戳記,單位為秒。

1770000000

maxSize

integer

單一檔案上傳大小上限,單位為位元組。

104857600

樣本

正常返回樣本

JSON格式

{
  "requestId": "0A1B2C3D-4E5F-6789-ABCD-1234567890AB",
  "artifactPath": "upload/2026-05-25/",
  "host": "https://example-bucket.oss-cn-shanghai.aliyuncs.com",
  "dir": "agents/123/sample-agent/home/starops/upload/2026-05-25/",
  "accessId": "LTAI******",
  "policy": "eyJleHBpcmF0aW9uIjoiMjAyNi0wNS0yMVQwODowMDowMFoifQ==",
  "signature": "abc123signature",
  "successActionStatus": "200",
  "expire": 1770000000,
  "maxSize": 104857600
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情