Save Ai Now Session File To Library
Save a generated AI Now task file as a durable Library artifact.
This is intentionally UI-driven and session-scoped: the file path must resolve inside an AI Now owned task workdir, then it enters the same SourcePipeline artifact path used by Mem's native agents.
Path Parameters
session_id*Session Id
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/agent/ai-now/sessions/string/files/save-to-library" \ -H "Content-Type: application/json" \ -d '{ "path": "string" }'{}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}