{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cogram-com/json-schema/cogram-com-contact-company-link-apply-result-v1-schema.json",
  "title": "ContactCompanyLinkApplyResultV1",
  "description": "What the write did.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cogram-com-directory-api-openapi.yml#/components/schemas/ContactCompanyLinkApplyResultV1",
  "properties": {
    "applied": {
      "items": {
        "$ref": "#/$defs/AppliedLinkV1"
      },
      "type": "array",
      "title": "Applied",
      "description": "Every link this call wrote, contact by contact. Keep it: it names the contacts that held no company before the call, and it is therefore the only way to reverse a run that linked the wrong company — Cogram cannot tell a firm's domain from a consumer one."
    },
    "linked": {
      "type": "integer",
      "title": "Linked",
      "description": "Contacts given a company by this call."
    },
    "skipped": {
      "type": "integer",
      "title": "Skipped",
      "description": "Proposed links this call did not write, because the contact gained a company between the read and the write. An existing company is never overwritten."
    }
  },
  "type": "object",
  "required": [
    "applied",
    "linked",
    "skipped"
  ],
  "$defs": {
    "AppliedLinkV1": {
      "properties": {
        "contact_id": {
          "type": "string",
          "title": "Contact Id"
        },
        "company_id": {
          "type": "string",
          "title": "Company Id"
        }
      },
      "type": "object",
      "required": [
        "contact_id",
        "company_id"
      ],
      "title": "AppliedLinkV1",
      "description": "One link this call wrote."
    }
  }
}