Skip to main content

Update Memory Collection

PUT /api/memory-collections/{collectionId}

Updates an existing memory collection.

Code Examples

curl --request PUT \
--url 'https://tess.pareto.io/api/memory-collections/{collectionId}' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"name": "Updated Collection Name"
}'

Path Parameters

ParameterTypeRequiredDescription
collectionIdintegerYesCollection ID

Request Body

ParameterTypeRequiredDescription
namestringYesName of the collection

Response

{
"message": "Collection updated successfully",
"collection": {
"id": 2,
"user_id": 1,
"name": "string"
}
}

Error Responses

Collection not found (404)

{
"message": "Collection not found"
}

Try it out!

Authentication

This endpoint requires Bearer token authentication.

Test Endpoint