Create Sub-List
curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists \
--header 'Content-Type: application/json' \
--data '
{
"listName": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists"
payload = { "listName": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({listName: '<string>'})
};
fetch('https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'listName' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists"
payload := strings.NewReader("{\n \"listName\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists")
.header("Content-Type", "application/json")
.body("{\n \"listName\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"listName\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"projectId": "<string>",
"userId": "<string>",
"name": "<string>",
"parentId": "<string>",
"entityIds": [
{}
],
"createdAt": "<string>",
"updatedAt": "<string>"
}List Endpoints
Create Sub-List
Create a new sub-list under a parent list
POST
/
:projectId
/
lists
/
:listId
/
sub-lists
Create Sub-List
curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists \
--header 'Content-Type: application/json' \
--data '
{
"listName": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists"
payload = { "listName": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({listName: '<string>'})
};
fetch('https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'listName' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists"
payload := strings.NewReader("{\n \"listName\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists")
.header("Content-Type", "application/json")
.body("{\n \"listName\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/lists/:listId/sub-lists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"listName\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"projectId": "<string>",
"userId": "<string>",
"name": "<string>",
"parentId": "<string>",
"entityIds": [
{}
],
"createdAt": "<string>",
"updatedAt": "<string>"
}Creates a new sub-list (nested list) under the specified parent list.
Path Parameters
string
required
ID of the parent list to nest under
Body Parameters
string
required
Name of the new sub-list
Response
string
Unique list identifier
string
Project identifier
string
ID of the user who owns the list
string
Name of the list
string
ID of the parent list
array
Array of entity IDs saved in this list
string
Creation timestamp in ISO 8601 format
string
Last update timestamp in ISO 8601 format
Error Responses
Missing Parameters - 400 Bad Request
Missing Parameters - 400 Bad Request
{
"error": "Missing required parameters in request body",
"code": "list/missing-parameters"
}
Invalid Parent List - 400 Bad Request
Invalid Parent List - 400 Bad Request
{
"error": "Invalid parent list ID for sub-list",
"code": "list/invalid-parent"
}
Server Error - 500 Internal Server Error
Server Error - 500 Internal Server Error
{
"error": "Server error",
"code": "list/server-error",
"details": "<Error message>"
}
Notes
- The authenticated user’s ID is automatically associated with the new list.
- Only existing parent lists can be used for sub-list creation.
- The response includes the populated list details.
⌘I

