SmartMemory
PATCH
/memory/workspaces/{workspace_id}

Rename (authority rename): name and/or description. The new text reaches the row, never the audit.

Authorization

AuthorizationBearer <token>

Send Authorization: Bearer <token>. The token is either a Clerk session JWT or a SmartMemory API key (prefix sm_live_, sm_test_, or legacy sk_).

In: header

Path Parameters

workspace_id*Workspace Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

PATCH /memory/workspaces/{id}: rename (contract routes.rows PATCH). At least one field.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/memory/workspaces/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "workspace_id": "string",
  "name": "string",
  "description": "string",
  "state": "active",
  "locked": true,
  "restore_until": "2019-08-24T14:15:22Z",
  "my_level": "view",
  "is_personal": true,
  "paired_team_id": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}