Black Friday Black Friday: các gói LetsBot mới tiết kiệm đến 60% — chỉ đến 30 tháng 11. Xem các gói Xem các gói
LetsBot Menu
Bắt đầu Tiếng Việt Ngôn ngữ

Meta Tech Provider đã được xác minh Công ty đăng ký tại Vương quốc Anh

Ngôn ngữ

CRM · Endpoint API

PATCH /api/v1/crm/objects/{key}/records/{id} Mới

Update a custom record

Only the values sent change (send null to clear one).

Only the values sent change (send null to clear one). Changes are kept in the field history with source api and fire the record updated automations. Scope: crm.

Nội dung JSON

{
  "values": {
    "budget": 1500,
    "status": "planned"
  }
}

Ví dụ yêu cầu

curl -X PATCH "https://your-workspace.letsbot.net/api/v1/crm/objects/co_projects/records/12" \
  -H "X-Zapier-Api-Key: YOUR_WORKSPACE_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "values": {
    "budget": 1500,
    "status": "planned"
  }
}'
const response = await fetch("https://your-workspace.letsbot.net/api/v1/crm/objects/co_projects/records/12", {
  method: "PATCH",
  headers: {
    "X-Zapier-Api-Key": "YOUR_WORKSPACE_API_KEY",
    "Accept": "application/json",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "values": {
      "budget": 1500,
      "status": "planned"
    }
  }),
});

const data = await response.json();
console.log(data);
<?php

$ch = curl_init('https://your-workspace.letsbot.net/api/v1/crm/objects/co_projects/records/12');

curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'PATCH',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'X-Zapier-Api-Key: YOUR_WORKSPACE_API_KEY',
        'Accept: application/json',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => <<<'JSON'
    {
        "values": {
            "budget": 1500,
            "status": "planned"
        }
    }
    JSON,
]);

$data = json_decode(curl_exec($ch), true);
curl_close($ch);

print_r($data);
import requests

response = requests.request(
    "PATCH",
    "https://your-workspace.letsbot.net/api/v1/crm/objects/co_projects/records/12",
    headers={
        "X-Zapier-Api-Key": "YOUR_WORKSPACE_API_KEY",
        "Accept": "application/json",
        "Content-Type": "application/json",
    },
    json={
        "values": {
            "budget": 1500,
            "status": "planned",
        },
    },
)

print(response.json())

Phản hồi

OK200
{
  "success": true,
  "data": {
    "id": 12,
    "object": "co_projects",
    "title": "Tower A",
    "owner_user_id": 3,
    "values": {
      "name": "Tower A",
      "budget": 1500,
      "status": "planned",
      "starts_on": "2026-11-20",
      "client": 481,
      "partners": [
        21,
        34
      ]
    },
    "created_at": "2026-11-07T09:00:00+03:00",
    "updated_at": "2026-11-07T09:30:00+03:00"
  }
}

Sẵn sàng khi bạn sẵn sàng

Dùng thử endpoint này với số của bạn

API hoạt động trong thời gian dùng thử miễn phí. Tạo tài khoản, kết nối số WhatsApp và sao chép khóa của bạn tại API → Dữ liệu xác thực.