Set File Attributes
Updates a node's mode, mtime or symlink target; a zero/empty value leaves that attribute unchanged.
Access: namespace OPERATOR or above (write); a workspace-scoped agent key may act only on the trees it was minted for
Authorization
BearerAuth A namespace-scoped API key (cpk_…) for machines, or a Xeonr Auth OIDC
token for humans. The key's namespace and role are pinned server-side.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
1 <= length <= 1281 <= length <= 4096validate:skip any mode accepted (0 = leave unchanged)
validate:skip any timestamp accepted (0 = leave unchanged)
int64length <= 4096Response Body
application/json
application/json
curl -X POST "https://containers.xeonr.io/containers.api.v1.WorkspaceService/SetAttr" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"info": {
"path": "string",
"size": "string",
"mode": 0,
"isDir": true,
"sha256": "string",
"mtimeUnix": "string",
"symlinkTarget": "string"
}
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}Remove File POST
Removes a file or directory (recursive required for a non-empty directory, FailedPrecondition otherwise). The workspace root cannot be removed. **Access:** namespace OPERATOR or above (write); a workspace-scoped agent key may act only on the trees it was minted for
Snapshot Workspace POST
Freezes a workspace's current content into an immutable snapshot. Flushes any live sandbox holding the workspace first and fails with Unavailable if it cannot, rather than returning a stale snapshot. Returns the snapshot id and full record. **Access:** namespace OPERATOR or above (write); a workspace-scoped agent key may act only on the trees it was minted for