写入文件

向运行中实例写入 UTF-8 文本或 base64 编码内容。用于上传任务输入和脚本。

Authentication

XAPI-Keystring

在 xAPI Console 创建的 API Key。只会发送给 *.xapi.to。

Path parameters

idstringRequiredformat: "uuid"

xAPI Sandbox 实例 UUID。

Request

This endpoint expects an object.
pathstringRequired<=4096 characters

相对于工作区的目标路径;不能包含父目录跳转片段。

contentstringRequired

utf8 时为原始文本;base64 时为不带 data:*;base64, 前缀的 Base64 字符串。

encodingenumRequired

content 的编码方式;二进制文件必须使用 base64。

Response

写入结果

pathstringOptional

实际写入或规范化后的工作区路径。

writtenbooleanOptional

供应商是否确认写入完成。

bytesintegerOptional

实际写入字节数;供应商未返回时省略。

Errors

409
Conflict Error