AgentConnect
Agent workspace

Create or replace a scratch workspace file

Atomically create or replace one UTF-8 file in a scratch workspace on the owning daemon. Requires edit access to the agent. Creation never overwrites an existing file; replacement requires the mtime returned by the last read. Conflicts return 409. GitHub workspaces remain read-only. The control plane stores no file content.

PUT
/v1/orgs/{orgId}/agents/{id}/workspace/file

授权

bearerAuth
授权Bearer <token>

位置: header

路径参数

orgId*string
id*string

查询参数

path*string
长度1 <= length <= 4096

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

响应主体

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/orgs/string/agents/string/workspace/file?path=string" \  -H "Content-Type: application/json" \  -d '{    "content": "string"  }'
{  "path": "string",  "size": 0,  "mtime": "string"}