Skip to main content
PATCH
https://api.app.shinzo.ai
/
v1
/
agent
/
{agentId}
/
filesystem
/
metadata
/
{path}
Update File Metadata
curl --request PATCH \
  --url https://api.app.shinzo.ai/v1/agent/{agentId}/filesystem/metadata/{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "permissions": "<string>",
  "owner": "<string>",
  "group": "<string>",
  "tags": [
    {}
  ]
}
'

Authentication

Requires JWT token or Platform API key.
agentId
string
required
Agent UUID
path
string
required
File or directory path within the agent workspace (wildcard segment)
permissions
string
New file permissions in octal format (e.g., 755)
owner
string
New owner
group
string
New group
tags
array
Tags to apply to the file

Example Request

curl -X PATCH "https://api.app.shinzo.ai/v1/agent/agt_abc123/filesystem/metadata/workspace/scripts/deploy.sh" \
  -H "Authorization: Bearer <jwt_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "permissions": "755"
  }'

Response

{
  "path": "/workspace/scripts/deploy.sh",
  "type": "file",
  "size": 512,
  "permissions": "755",
  "created_at": "2025-01-15T10:00:00Z",
  "modified_at": "2025-01-20T14:00:00Z"
}

Response Fields

FieldTypeDescription
pathstringAbsolute path of the file or directory
typestringEntry type (file or directory)
sizenumberSize in bytes
permissionsstringUpdated file permissions in octal format
created_atstringCreation timestamp (ISO 8601)
modified_atstringLast modified timestamp (ISO 8601)

Status Codes

CodeDescription
200Metadata updated successfully
400Invalid request body
401Invalid authentication
403Access denied
404Agent or path not found