Tale · Schema

ContactPatch

Every field optional. `null` clears any optional field, and a blank string reads as `null`; `metadata` merges per RFC 7396 while `address` is replaced whole. A patch may not clear the last of `name`, `email` and `externalId` (400 `CONTACT_IDENTITY_REQUIRED`). Send `expectedUpdatedAt` from the last contact read to update only that revision: a stale one answers 409 `CONTACT_STALE` without changing any field.

CompanyArtificial IntelligenceAgentsAutomationKnowledge ManagementMCPOpen SourceSelf-Hosted

Properties

Name Type Description
name stringnull Trimmed
email stringnull Trimmed and stored lowercase — a duplicate matches case-insensitively; the part before `@` is at most 64 characters
phone stringnull Trimmed — digits and phone punctuation only (`+`, spaces, dashes, parentheses, dots); at least one digit
source string Where the contact came from — one of the platform’s data sources; defaults to `api_import`, and `custom` is the catch-all for anything not listed
locale stringnull Trimmed
address objectnull Free-form. On PATCH it is REPLACED whole — an address is a unit. At most 64 KiB of JSON, 8 levels of nesting and 500 keys in total (every nested object counted); a larger value answers 400 `INVALID_BO
externalId object Stored as a trimmed string. Send a source system’s id as a string: a number beyond 2^53 − 1 cannot be carried exactly and is refused
tags arraynull
metadata objectnull Free-form. On PATCH it MERGES per RFC 7396 — sent keys are set, omitted keys stay, a key sent as `null` is removed, and the whole field sent as `null` clears it. At most 64 KiB of JSON, 8 levels of ne
notes stringnull Trimmed
expectedUpdatedAt integer The `updatedAt` of the revision this update is based on
View JSON Schema on GitHub

JSON Schema

tale-dev-contact-patch-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tale-dev/json-schema/tale-dev-contact-patch-schema.json",
  "title": "ContactPatch",
  "description": "Every field optional. `null` clears any optional field, and a blank string reads as `null`; `metadata` merges per RFC 7396 while `address` is replaced whole. A patch may not clear the last of `name`, `email` and `externalId` (400 `CONTACT_IDENTITY_REQUIRED`). Send `expectedUpdatedAt` from the last contact read to update only that revision: a stale one answers 409 `CONTACT_STALE` without changing any field.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tale-dev-contacts-api-openapi.yml#/components/schemas/ContactPatch",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 300,
      "description": "Trimmed"
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email",
      "maxLength": 320,
      "description": "Trimmed and stored lowercase — a duplicate matches case-insensitively; the part before `@` is at most 64 characters"
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 50,
      "description": "Trimmed — digits and phone punctuation only (`+`, spaces, dashes, parentheses, dots); at least one digit"
    },
    "source": {
      "type": "string",
      "enum": [
        "manual_import",
        "file_upload",
        "api_import",
        "conversation",
        "shopify",
        "woocommerce",
        "magento",
        "bigcommerce",
        "prestashop",
        "chargebee",
        "stripe",
        "recurly",
        "salesforce",
        "hubspot",
        "pipedrive",
        "zoho",
        "sap",
        "oracle",
        "netsuite",
        "mailchimp",
        "klaviyo",
        "sendgrid",
        "webhook",
        "zapier",
        "custom"
      ],
      "description": "Where the contact came from — one of the platform’s data sources; defaults to `api_import`, and `custom` is the catch-all for anything not listed"
    },
    "locale": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 20,
      "description": "Trimmed"
    },
    "address": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "maxProperties": 500,
      "description": "Free-form. On PATCH it is REPLACED whole — an address is a unit. At most 64 KiB of JSON, 8 levels of nesting and 500 keys in total (every nested object counted); a larger value answers 400 `INVALID_BODY` naming the path."
    },
    "externalId": {
      "oneOf": [
        {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 256
        },
        {
          "type": [
            "integer",
            "null"
          ],
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      ],
      "description": "Stored as a trimmed string. Send a source system’s id as a string: a number beyond 2^53 − 1 cannot be carried exactly and is refused"
    },
    "tags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "maxLength": 60,
        "description": "Trimmed"
      },
      "maxItems": 50
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "maxProperties": 500,
      "description": "Free-form. On PATCH it MERGES per RFC 7396 — sent keys are set, omitted keys stay, a key sent as `null` is removed, and the whole field sent as `null` clears it. At most 64 KiB of JSON, 8 levels of nesting and 500 keys in total (every nested object counted); a larger value answers 400 `INVALID_BODY` naming the path."
    },
    "notes": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10000,
      "description": "Trimmed"
    },
    "expectedUpdatedAt": {
      "type": "integer",
      "minimum": 0,
      "maximum": 8640000000000000,
      "description": "The `updatedAt` of the revision this update is based on"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/tale-dev-contact-patch"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.