Create or overwrite Agent Drive file

API documentation for Create or overwrite Agent Drive file

PUT
/api/v1/spaces/{spaceId}/agents/{agentId}/drive/files

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication.

In: header

Path Parameters

spaceId*string
agentId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://loading/api/v1/api/v1/spaces/string/agents/string/drive/files" \  -H "Content-Type: application/json" \  -d '{    "path": "string",    "content": "string"  }'
{
  "success": true,
  "file": {
    "path": "string",
    "name": "string",
    "type": "file",
    "size": 0,
    "mimeType": "string",
    "updatedAt": "string"
  }
}
{
  "defined": true,
  "code": "BAD_REQUEST",
  "status": 400,
  "message": "Bad Request",
  "data": {
    "error": "string"
  }
}
{
  "defined": true,
  "code": "UNAUTHORIZED",
  "status": 401,
  "message": "Unauthorized",
  "data": {
    "error": "string"
  }
}
{
  "defined": true,
  "code": "FORBIDDEN",
  "status": 403,
  "message": "Forbidden",
  "data": {
    "error": "string"
  }
}
{
  "defined": true,
  "code": "NOT_FOUND",
  "status": 404,
  "message": "Not Found",
  "data": {
    "error": "string"
  }
}