curl --request PATCH \
--url https://api.izap.ai/api/v1/businesses/current \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'business-id: <business-id>' \
--data '
{
"business_name": "<string>",
"industry": "<string>",
"timezone": "<string>"
}
'import requests
url = "https://api.izap.ai/api/v1/businesses/current"
payload = {
"business_name": "<string>",
"industry": "<string>",
"timezone": "<string>"
}
headers = {
"business-id": "<business-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'business-id': '<business-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({business_name: '<string>', industry: '<string>', timezone: '<string>'})
};
fetch('https://api.izap.ai/api/v1/businesses/current', 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.izap.ai/api/v1/businesses/current",
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([
'business_name' => '<string>',
'industry' => '<string>',
'timezone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"business-id: <business-id>"
],
]);
$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.izap.ai/api/v1/businesses/current"
payload := strings.NewReader("{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"timezone\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("business-id", "<business-id>")
req.Header.Add("Authorization", "Bearer <token>")
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.izap.ai/api/v1/businesses/current")
.header("business-id", "<business-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"timezone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.izap.ai/api/v1/businesses/current")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["business-id"] = '<business-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"timezone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"business_name": "<string>",
"hours": [
{
"end_hour": "<string>",
"operating_days": [
"<unknown>"
],
"start_hour": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"menus": [
{
"menu_json": "<unknown>",
"ai_model": "<string>",
"ai_model_reasoning": "none",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"chatbot": {
"effective_locale": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ai_model_name": "<string>",
"ai_pause_minutes": 123,
"ai_pause_minutes_default": 60,
"avatar": "<string>",
"custom_instructions": [
"<unknown>"
],
"detect_client_language": false,
"is_active": false,
"locale": "<string>",
"locale_source": "default",
"messaging_backend": "izap",
"name": "<string>",
"objective": "<string>",
"phone_number": "<string>",
"platform": "whatsapp",
"whatsapp_numbers": []
},
"chatbots": [],
"industry": "<string>",
"timezone": "<string>"
}{
"detail": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}{
"detail": "<string>",
"code": "<string>"
}Update a business
Partially updates the business profile. Only the fields present in the request body are changed. The business is taken from the business-id header rather than the URL; the path-scoped form of this operation is deprecated.
curl --request PATCH \
--url https://api.izap.ai/api/v1/businesses/current \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'business-id: <business-id>' \
--data '
{
"business_name": "<string>",
"industry": "<string>",
"timezone": "<string>"
}
'import requests
url = "https://api.izap.ai/api/v1/businesses/current"
payload = {
"business_name": "<string>",
"industry": "<string>",
"timezone": "<string>"
}
headers = {
"business-id": "<business-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'business-id': '<business-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({business_name: '<string>', industry: '<string>', timezone: '<string>'})
};
fetch('https://api.izap.ai/api/v1/businesses/current', 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.izap.ai/api/v1/businesses/current",
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([
'business_name' => '<string>',
'industry' => '<string>',
'timezone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"business-id: <business-id>"
],
]);
$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.izap.ai/api/v1/businesses/current"
payload := strings.NewReader("{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"timezone\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("business-id", "<business-id>")
req.Header.Add("Authorization", "Bearer <token>")
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.izap.ai/api/v1/businesses/current")
.header("business-id", "<business-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"timezone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.izap.ai/api/v1/businesses/current")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["business-id"] = '<business-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"timezone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"business_name": "<string>",
"hours": [
{
"end_hour": "<string>",
"operating_days": [
"<unknown>"
],
"start_hour": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"menus": [
{
"menu_json": "<unknown>",
"ai_model": "<string>",
"ai_model_reasoning": "none",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"chatbot": {
"effective_locale": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ai_model_name": "<string>",
"ai_pause_minutes": 123,
"ai_pause_minutes_default": 60,
"avatar": "<string>",
"custom_instructions": [
"<unknown>"
],
"detect_client_language": false,
"is_active": false,
"locale": "<string>",
"locale_source": "default",
"messaging_backend": "izap",
"name": "<string>",
"objective": "<string>",
"phone_number": "<string>",
"platform": "whatsapp",
"whatsapp_numbers": []
},
"chatbots": [],
"industry": "<string>",
"timezone": "<string>"
}{
"detail": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}{
"detail": "<string>",
"code": "<string>"
}Authorizations
Personal access token (izap_pat_…) sent as Authorization: Bearer ; dashboard session JWTs are also accepted.
Headers
UUID of the business the request is scoped to. Required on this route; the deprecated /businesses/{business_id}/... form takes it from the path instead.
Body
Partial update for a business's profile. Optional fields only; unset ones are left alone.
Kept intentionally narrow (name + timezone) so GOG-3129 (business hours) can extend this
same endpoint with an hours field later instead of introducing a second PATCH route.
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes