MemoryService
Memory Layers
Update a memory layer
Changed onUpdates a memory layer in the workspace
patch/v1/workspaces/{workspaceId}/memory_layers/{id}
Request
- Base URLhttps://api.cadenya.com
- URLhttps://api.cadenya.com/v1/workspaces/{workspaceId}/memory_layers/{id}
- AuthHTTP bearer
Path parameters
workspaceIdstring required
Example:workspace_01HXKD2E5NQM3T9AYWCF133E3Q
idstring required
Example:memlyr_01HXKD2E5NQM3T9AYWCFFFBMJH
Memory layer ID. Accepts canonical memlyr_… form or external_id:<value> form.
Request body
Example request
{
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"id": "memlyr_01HXKD2E5NQM3T9AYWCFFFBMJH",
"spec": {
"agentId": "agent_01HXKD2E5NQM3T9AYWCFMGWT9Y"
}
}Response
OK
Example response
{
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
},
"spec": {
"agentId": "agent_01HXKD2E5NQM3T9AYWCFMGWT9Y"
},
"info": {
"createdBy": {
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
}
},
"agent": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
}
}
}Changes
- warning
removed the request property
/ - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
/from the response with the status - info
added the optional property
///to the response with the status
- warning
- info
added the optional property
/to the response with the status
- info