Update Attribute Status Option
curl --request PATCH \
--url https://api.zixflow.com/api/v1/attributes/{target}/{targetId}/{attributeId}/status/{optionId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"color": "<string>",
"isArchived": true,
"celebrationEnabled": true
}
'import requests
url = "https://api.zixflow.com/api/v1/attributes/{target}/{targetId}/{attributeId}/status/{optionId}"
payload = {
"name": "<string>",
"color": "<string>",
"isArchived": True,
"celebrationEnabled": True
}
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({
name: '<string>',
color: '<string>',
isArchived: true,
celebrationEnabled: true
})
};
fetch('https://api.zixflow.com/api/v1/attributes/{target}/{targetId}/{attributeId}/status/{optionId}', 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/attributes/{target}/{targetId}/{attributeId}/status/{optionId}",
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([
'name' => '<string>',
'color' => '<string>',
'isArchived' => true,
'celebrationEnabled' => true
]),
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/attributes/{target}/{targetId}/{attributeId}/status/{optionId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"isArchived\": true,\n \"celebrationEnabled\": true\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/attributes/{target}/{targetId}/{attributeId}/status/{optionId}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"isArchived\": true,\n \"celebrationEnabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zixflow.com/api/v1/attributes/{target}/{targetId}/{attributeId}/status/{optionId}")
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 \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"isArchived\": true,\n \"celebrationEnabled\": true\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Attribute status updated successfully"
}
{
"status": false,
"message": "No token provided"
}
Attribute Status
Update Attribute Status Option
This endpoint updates a status attribute option.
PATCH
/
api
/
v1
/
attributes
/
{target}
/
{targetId}
/
{attributeId}
/
status
/
{optionId}
Update Attribute Status Option
curl --request PATCH \
--url https://api.zixflow.com/api/v1/attributes/{target}/{targetId}/{attributeId}/status/{optionId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"color": "<string>",
"isArchived": true,
"celebrationEnabled": true
}
'import requests
url = "https://api.zixflow.com/api/v1/attributes/{target}/{targetId}/{attributeId}/status/{optionId}"
payload = {
"name": "<string>",
"color": "<string>",
"isArchived": True,
"celebrationEnabled": True
}
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({
name: '<string>',
color: '<string>',
isArchived: true,
celebrationEnabled: true
})
};
fetch('https://api.zixflow.com/api/v1/attributes/{target}/{targetId}/{attributeId}/status/{optionId}', 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/attributes/{target}/{targetId}/{attributeId}/status/{optionId}",
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([
'name' => '<string>',
'color' => '<string>',
'isArchived' => true,
'celebrationEnabled' => true
]),
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/attributes/{target}/{targetId}/{attributeId}/status/{optionId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"isArchived\": true,\n \"celebrationEnabled\": true\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/attributes/{target}/{targetId}/{attributeId}/status/{optionId}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"isArchived\": true,\n \"celebrationEnabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zixflow.com/api/v1/attributes/{target}/{targetId}/{attributeId}/status/{optionId}")
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 \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"isArchived\": true,\n \"celebrationEnabled\": true\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Attribute status updated successfully"
}
{
"status": false,
"message": "No token provided"
}
Description
This API endpoint allows the update of a status attribute option. Status attribute options are used to define different stages or states that an item can go through in a collection or list.Path
A unique identifier for the target, either a collection ID or a list ID, depending on the target type.
Request Body
Response
Indicates the success or failure of the status option 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 attribute status option with the message
“Attribute status updated successfully.”
{
"status": true,
"message": "Attribute status updated successfully"
}
{
"status": false,
"message": "No token provided"
}