cURL
curl --request POST \ --url https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists \ --header 'Content-Type: application/json' \ --data ' { "listName": "<string>" } '
{ "id": "<string>", "projectId": "<string>", "userId": "<string>", "name": "<string>", "parentId": "<string>", "entityIds": [ {} ], "createdAt": "<string>", "updatedAt": "<string>" }
Create a new sub-list under a parent list
Missing Parameters - 400 Bad Request
{ "error": "Missing required parameters in request body", "code": "list/missing-parameters" }
Invalid Parent List - 400 Bad Request
{ "error": "Invalid parent list ID for sub-list", "code": "list/invalid-parent" }
Server Error - 500 Internal Server Error
{ "error": "Server error", "code": "list/server-error", "details": "<Error message>" }