Skip to main content
POST
/
:projectId
/
api
/
v7
/
collections
/
:collectionId
/
sub-collections
Create Sub-Collection
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/sub-collections \
  --header 'Content-Type: application/json' \
  --data '
{
  "collectionName": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.replyke.com/llms.txt

Use this file to discover all available pages before exploring further.

Creates a new named sub-collection under the specified parent collection. Returns 400 if the parent collection does not exist.

Path Parameters

collectionId
string
required
The ID of the parent collection. Use the root collection’s ID to create a top-level folder.

Body Parameters

collectionName
string
required
The name for the new collection.

Response

Returns the newly created Collection object with status 201.

Error Responses

{ "error": "Invalid parent collection ID for sub-collection", "code": "collection/invalid-parent" }
{ "error": "Server error", "code": "collection/server-error" }