Skip to main content
PATCH
/
:projectId
/
api
/
v7
/
collections
/
:collectionId
Update Collection
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
Updates the name of a sub-collection. The root collection cannot be renamed (it has parentId: null, which this endpoint rejects).

Path Parameters

collectionId
string
required
The ID of the collection to update.

Body Parameters

name
string
required
The new name for the collection.

Response

Returns the updated Collection object.

Error Responses

Returned when the collection doesn’t exist, doesn’t belong to the user, or is the root collection (which cannot be renamed).
{ "error": "Collection not found", "code": "collection/not-found" }
{ "error": "Server error", "code": "collection/server-error" }