Create A List Entry
curl --request POST \
--url https://api.zixflow.com/api/v1/list-entries/{listId} \
--header 'Content-Type: application/json' \
--data '
{
"recordId": "<string>",
"data": {}
}
'import requests
url = "https://api.zixflow.com/api/v1/list-entries/{listId}"
payload = {
"recordId": "<string>",
"data": {}
}
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({recordId: '<string>', data: {}})
};
fetch('https://api.zixflow.com/api/v1/list-entries/{listId}', 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.zixflow.com/api/v1/list-entries/{listId}",
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([
'recordId' => '<string>',
'data' => [
]
]),
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.zixflow.com/api/v1/list-entries/{listId}"
payload := strings.NewReader("{\n \"recordId\": \"<string>\",\n \"data\": {}\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.zixflow.com/api/v1/list-entries/{listId}")
.header("Content-Type", "application/json")
.body("{\n \"recordId\": \"<string>\",\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zixflow.com/api/v1/list-entries/{listId}")
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 \"recordId\": \"<string>\",\n \"data\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "List entry created successfully!",
"data": {
"listId": "6551fdcad2d75edff28c9085",
"peopleId": "654566f0c57bc82e28e5bb40",
"companyId": null,
"dealId": null,
"recordId": null,
"owner": "63d0e0b2eaa35b73f3b2344e",
"_id": "6551fe0c92dc3d7c3aa20e12",
"createdAt": "2023-11-13T10:44:28.028Z",
"updatedAt": "2023-11-13T10:44:28.028Z",
"__v": 0
<!-- Additional fields based on list attributes -->
}
}
{
"status": false,
"message": "No token provided"
}
List Entries
Create A List Entry
This endpoint creates a new entry in the specified list.
POST
/
api
/
v1
/
list-entries
/
{listId}
Create A List Entry
curl --request POST \
--url https://api.zixflow.com/api/v1/list-entries/{listId} \
--header 'Content-Type: application/json' \
--data '
{
"recordId": "<string>",
"data": {}
}
'import requests
url = "https://api.zixflow.com/api/v1/list-entries/{listId}"
payload = {
"recordId": "<string>",
"data": {}
}
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({recordId: '<string>', data: {}})
};
fetch('https://api.zixflow.com/api/v1/list-entries/{listId}', 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.zixflow.com/api/v1/list-entries/{listId}",
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([
'recordId' => '<string>',
'data' => [
]
]),
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.zixflow.com/api/v1/list-entries/{listId}"
payload := strings.NewReader("{\n \"recordId\": \"<string>\",\n \"data\": {}\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.zixflow.com/api/v1/list-entries/{listId}")
.header("Content-Type", "application/json")
.body("{\n \"recordId\": \"<string>\",\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zixflow.com/api/v1/list-entries/{listId}")
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 \"recordId\": \"<string>\",\n \"data\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "List entry created successfully!",
"data": {
"listId": "6551fdcad2d75edff28c9085",
"peopleId": "654566f0c57bc82e28e5bb40",
"companyId": null,
"dealId": null,
"recordId": null,
"owner": "63d0e0b2eaa35b73f3b2344e",
"_id": "6551fe0c92dc3d7c3aa20e12",
"createdAt": "2023-11-13T10:44:28.028Z",
"updatedAt": "2023-11-13T10:44:28.028Z",
"__v": 0
<!-- Additional fields based on list attributes -->
}
}
{
"status": false,
"message": "No token provided"
}
Description
This API endpoint allows the creation of a new entry within a specified list. The list entry is associated with a collection record, and additional data can be provided based on the attributes of the list.Path
string
required
A unique identifier for the list where the new entry will be added.
Body
string
required
The ID of the collection record to be linked with the list entry.
object
Key-value pairs representing data for the list entry. Keys are defined by the attribute API key name, and values are based on the input type of the attribute.
Response
boolean
Indicates the success or failure of the list entry creation. In this case,
true signifies a successful operation.
string
Provides a human-readable message accompanying the response. In this instance,
it confirms the successful creation of the list entry with the message “List entry created successfully!”
object
An object containing details of the created list entry. The structure of the data object is dynamic and depends on the attributes supported by the list:
{
"status": true,
"message": "List entry created successfully!",
"data": {
"listId": "6551fdcad2d75edff28c9085",
"peopleId": "654566f0c57bc82e28e5bb40",
"companyId": null,
"dealId": null,
"recordId": null,
"owner": "63d0e0b2eaa35b73f3b2344e",
"_id": "6551fe0c92dc3d7c3aa20e12",
"createdAt": "2023-11-13T10:44:28.028Z",
"updatedAt": "2023-11-13T10:44:28.028Z",
"__v": 0
<!-- Additional fields based on list attributes -->
}
}
{
"status": false,
"message": "No token provided"
}