Set Freeze on Agent Shared File
curl --request PATCH \
--url https://odyssey.asteroid.ai/agents/v2/agents/{agentId}/shared-files/{fileId}/freeze \
--header 'Content-Type: application/json' \
--header 'X-Asteroid-Agents-Api-Key: <api-key>' \
--data '
{
"isFrozen": true
}
'{
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"downloadUrl": "<string>",
"fileName": "<string>",
"filePath": "<string>",
"fileSize": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isFrozen": true,
"updatedAt": "2023-11-07T05:31:56Z",
"version": 123,
"checksum": "<string>",
"lastModifiedByExecutionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mimeType": "<string>"
}Files
Set Freeze on Agent Shared File
deprecated
Set the frozen status of a shared file. Frozen files are preserved across executions and cannot be overwritten by the agent.
PATCH
/
agents
/
{agentId}
/
shared-files
/
{fileId}
/
freeze
Set Freeze on Agent Shared File
curl --request PATCH \
--url https://odyssey.asteroid.ai/agents/v2/agents/{agentId}/shared-files/{fileId}/freeze \
--header 'Content-Type: application/json' \
--header 'X-Asteroid-Agents-Api-Key: <api-key>' \
--data '
{
"isFrozen": true
}
'{
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"downloadUrl": "<string>",
"fileName": "<string>",
"filePath": "<string>",
"fileSize": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isFrozen": true,
"updatedAt": "2023-11-07T05:31:56Z",
"version": 123,
"checksum": "<string>",
"lastModifiedByExecutionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mimeType": "<string>"
}Authorizations
Body
application/json
Request to set the frozen status of a shared file
Response
The request has succeeded.
A file in the agent's persistent shared storage
Hex-encoded SHA-256 of the file contents. Used for change and rename detection when diffing versions. Absent when the checksum is unknown.
⌘I

