Update List Entry
curl --request PATCH \
--url https://api.zixflow.com/api/v1/list-entries/{listId}/{entryId} \
--header 'Content-Type: application/json' \
--data '{
"data": {}
}'import requests
url = "https://api.zixflow.com/api/v1/list-entries/{listId}/{entryId}"
payload = { "data": {} }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({data: {}})
};
fetch('https://api.zixflow.com/api/v1/list-entries/{listId}/{entryId}', 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}/{entryId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'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}/{entryId}"
payload := strings.NewReader("{\n \"data\": {}\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.zixflow.com/api/v1/list-entries/{listId}/{entryId}")
.header("Content-Type", "application/json")
.body("{\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zixflow.com/api/v1/list-entries/{listId}/{entryId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "List entry updated successfully!"
}
{
"status": false,
"message": "No token provided"
}
List Entries
Update List Entry
This endpoint updates an existing entry in the specified list.
PATCH
/
api
/
v1
/
list-entries
/
{listId}
/
{entryId}
Update List Entry
curl --request PATCH \
--url https://api.zixflow.com/api/v1/list-entries/{listId}/{entryId} \
--header 'Content-Type: application/json' \
--data '{
"data": {}
}'import requests
url = "https://api.zixflow.com/api/v1/list-entries/{listId}/{entryId}"
payload = { "data": {} }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({data: {}})
};
fetch('https://api.zixflow.com/api/v1/list-entries/{listId}/{entryId}', 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}/{entryId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'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}/{entryId}"
payload := strings.NewReader("{\n \"data\": {}\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.zixflow.com/api/v1/list-entries/{listId}/{entryId}")
.header("Content-Type", "application/json")
.body("{\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zixflow.com/api/v1/list-entries/{listId}/{entryId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "List entry updated successfully!"
}
{
"status": false,
"message": "No token provided"
}
Description
This API endpoint allows the modification of an existing entry within a specified list. The list entry is identified by its unique ID, and data can be updated based on the attributes of the list.Path
string
required
A unique identifier for the list containing the entry to be updated.
string
required
The ID of the list entry to be updated.
Body
object
Key-value pairs representing data to update in 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 update. In this case,
true signifies a successful operation.
string
Provides a human-readable message accompanying the response. In this instance,
it confirms the successful update of the list entry with the message “List entry updated successfully!”
{
"status": true,
"message": "List entry updated successfully!"
}
{
"status": false,
"message": "No token provided"
}