Skip to content
Judgment Labs
Esc
↑↓navigate↵open⌘Jpreview

Write a memory file

Create or update one project memory file by path. Use this for durable project context that future agent sessions should see.

PUT/v1/projects/{projectId}/memory/files
Authorization
AuthorizationPersonal API key · headerrequired

Your personal API key from Settings > Personal API Keys, sent as Bearer <key>.

X-Organization-IdOrganization ID · headerrequired

The organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.

Path parameters
projectIdstringrequired
Request body
requiredapplication/json
namestringrequired

The memory file path to create or update

min length 1
bodystringrequired

The complete memory file body to write

Responses
200

Response for status 200

fileobjectrequired
Show properties
idstringrequired
project_idstringrequired
namestringrequired
bodystringrequired
created_bystring | nullrequired
created_atstringrequired
updated_atstringrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'https://api.judgmentlabs.ai/v1/projects/YOUR_PROJECT_ID/memory/files' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'X-Organization-Id: YOUR_ORGANIZATION_ID' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "body": "string"
}'
Response
{
  "file": {
    "id": "string",
    "project_id": "string",
    "name": "string",
    "body": "string",
    "created_by": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}

Was this page helpful?