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>"
}
'Create a new sub-collection inside an existing 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>"
}
'400 if the parent collection does not exist.
status 201.
Invalid Parent — 400 Bad Request
{ "error": "Invalid parent collection ID for sub-collection", "code": "collection/invalid-parent" }
Server Error — 500
{ "error": "Server error", "code": "collection/server-error" }