Update An Activity
curl --request PATCH \
--url https://api.zixflow.com/api/v1/collection-records/activity-list/{activityId} \
--header 'Content-Type: application/json' \
--data '
{
"iconType": "<string>",
"iconValue": "<string>",
"name": "<string>",
"scheduleAt": "<string>",
"description": "<string>",
"associated": "<string>",
"status": "<string>"
}
'import requests
url = "https://api.zixflow.com/api/v1/collection-records/activity-list/{activityId}"
payload = {
"iconType": "<string>",
"iconValue": "<string>",
"name": "<string>",
"scheduleAt": "<string>",
"description": "<string>",
"associated": "<string>",
"status": "<string>"
}
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({
iconType: '<string>',
iconValue: '<string>',
name: '<string>',
scheduleAt: '<string>',
description: '<string>',
associated: '<string>',
status: '<string>'
})
};
fetch('https://api.zixflow.com/api/v1/collection-records/activity-list/{activityId}', 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/collection-records/activity-list/{activityId}",
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([
'iconType' => '<string>',
'iconValue' => '<string>',
'name' => '<string>',
'scheduleAt' => '<string>',
'description' => '<string>',
'associated' => '<string>',
'status' => '<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.zixflow.com/api/v1/collection-records/activity-list/{activityId}"
payload := strings.NewReader("{\n \"iconType\": \"<string>\",\n \"iconValue\": \"<string>\",\n \"name\": \"<string>\",\n \"scheduleAt\": \"<string>\",\n \"description\": \"<string>\",\n \"associated\": \"<string>\",\n \"status\": \"<string>\"\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/collection-records/activity-list/{activityId}")
.header("Content-Type", "application/json")
.body("{\n \"iconType\": \"<string>\",\n \"iconValue\": \"<string>\",\n \"name\": \"<string>\",\n \"scheduleAt\": \"<string>\",\n \"description\": \"<string>\",\n \"associated\": \"<string>\",\n \"status\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zixflow.com/api/v1/collection-records/activity-list/{activityId}")
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 \"iconType\": \"<string>\",\n \"iconValue\": \"<string>\",\n \"name\": \"<string>\",\n \"scheduleAt\": \"<string>\",\n \"description\": \"<string>\",\n \"associated\": \"<string>\",\n \"status\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Record updated successfully!"
}
{
"status": false,
"message": "No token provided"
}
Activity / Task
Update An Activity
This endpoint updates an existing activity or task within a collection.
PATCH
/
api
/
v1
/
collection-records
/
activity-list
/
{activityId}
Update An Activity
curl --request PATCH \
--url https://api.zixflow.com/api/v1/collection-records/activity-list/{activityId} \
--header 'Content-Type: application/json' \
--data '
{
"iconType": "<string>",
"iconValue": "<string>",
"name": "<string>",
"scheduleAt": "<string>",
"description": "<string>",
"associated": "<string>",
"status": "<string>"
}
'import requests
url = "https://api.zixflow.com/api/v1/collection-records/activity-list/{activityId}"
payload = {
"iconType": "<string>",
"iconValue": "<string>",
"name": "<string>",
"scheduleAt": "<string>",
"description": "<string>",
"associated": "<string>",
"status": "<string>"
}
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({
iconType: '<string>',
iconValue: '<string>',
name: '<string>',
scheduleAt: '<string>',
description: '<string>',
associated: '<string>',
status: '<string>'
})
};
fetch('https://api.zixflow.com/api/v1/collection-records/activity-list/{activityId}', 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/collection-records/activity-list/{activityId}",
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([
'iconType' => '<string>',
'iconValue' => '<string>',
'name' => '<string>',
'scheduleAt' => '<string>',
'description' => '<string>',
'associated' => '<string>',
'status' => '<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.zixflow.com/api/v1/collection-records/activity-list/{activityId}"
payload := strings.NewReader("{\n \"iconType\": \"<string>\",\n \"iconValue\": \"<string>\",\n \"name\": \"<string>\",\n \"scheduleAt\": \"<string>\",\n \"description\": \"<string>\",\n \"associated\": \"<string>\",\n \"status\": \"<string>\"\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/collection-records/activity-list/{activityId}")
.header("Content-Type", "application/json")
.body("{\n \"iconType\": \"<string>\",\n \"iconValue\": \"<string>\",\n \"name\": \"<string>\",\n \"scheduleAt\": \"<string>\",\n \"description\": \"<string>\",\n \"associated\": \"<string>\",\n \"status\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zixflow.com/api/v1/collection-records/activity-list/{activityId}")
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 \"iconType\": \"<string>\",\n \"iconValue\": \"<string>\",\n \"name\": \"<string>\",\n \"scheduleAt\": \"<string>\",\n \"description\": \"<string>\",\n \"associated\": \"<string>\",\n \"status\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Record updated successfully!"
}
{
"status": false,
"message": "No token provided"
}
Description
This API endpoint allows for the update of an existing activity or task within a specified collection. The activity to be updated is identified by the unique identifier (activityId) provided in the path parameter.Path
Body
Specifies the type of icon associated with the activity. Possible values include ‘emoji’, ‘interaction’, ‘messaging_app’, etc.
Defines the specific value of the icon based on the iconType.
- For ‘emoji’, provide any emoji.
- For ‘interaction’, valid values include ‘call’, ‘meeting’, ‘message’, ‘coffee’, ‘lunch’, ‘event’, ‘drink’, etc.
- For ‘messaging_app’, valid values include ‘whatsapp’, ‘twitter’, ‘linkedin’, ‘hangout’, ‘skype’, ‘slack’, ‘imessage’, ‘facebook_messenger’, ‘signal’, ‘discord’, ‘wechat’, ‘telegram’, ‘viber’, etc.
Specifies the updated scheduled time for the activity in the format “YYYY-MM-DDTHH:mm:ss.SSSZ”.
Response
Indicates the success or failure of the activity update. In this case,
true signifies a successful operation.
Provides a human-readable message accompanying the response. In this instance,
it confirms the successful update of the activity with the message “Record updated successfully!”
{
"status": true,
"message": "Record updated successfully!"
}
{
"status": false,
"message": "No token provided"
}