{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-update-contact-input-schema.json",
  "title": "updateContactInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-contact-api-openapi.yml#/components/schemas/updateContactInput",
  "properties": {
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time."
    },
    "picture": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uri"
        }
      },
      "description": "Profile picture associated with the contact.\n\nRelation to CloudObject, see: 'updateCloudObjectInput' object for properties."
    },
    "address": {
      "type": "string",
      "description": "Street address of the contact."
    },
    "city": {
      "type": "string",
      "description": "City of the contact address."
    },
    "comments": {
      "type": "string",
      "description": "Free-form notes describing the contact."
    },
    "contact_type_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the contact type assigned to this contact."
    },
    "country": {
      "type": "string",
      "description": "Country of the contact address."
    },
    "currency_exchange_rates_list_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the currency exchange rate list applied to this contact."
    },
    "email1": {
      "type": "string",
      "description": "Primary email address of the contact. Used as default recipient for emails sent from Coevera."
    },
    "email2": {
      "type": "string",
      "description": "Additional email address."
    },
    "email3": {
      "type": "string",
      "description": "Additional email address."
    },
    "email4": {
      "type": "string",
      "description": "Additional email address."
    },
    "email5": {
      "type": "string",
      "description": "Additional email address."
    },
    "first_name": {
      "type": "string",
      "description": "Given name of the contact."
    },
    "gender": {
      "type": "integer",
      "description": "Gender of the contact (e.g. Male, Female, Other).\n\nInteger enum value: 0 - Unknown, 1 - Male, 2 - Female, 3 - NonBinary",
      "enum": [
        0,
        1,
        2,
        3
      ]
    },
    "is_archived": {
      "type": "boolean",
      "description": "True when the contact has been archived. Archived contacts remain readable but are hidden from active lists and cannot be edited until reactivated."
    },
    "last_name": {
      "type": "string",
      "description": "Family name of the contact."
    },
    "middle_name": {
      "type": "string",
      "description": "Middle name of the contact, if applicable."
    },
    "owner_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the contact owner."
    },
    "phone1": {
      "type": "string",
      "description": "Primary phone number of the contact. Used as default target for click-to-call."
    },
    "phone2": {
      "type": "string",
      "description": "Additional phone number."
    },
    "phone3": {
      "type": "string",
      "description": "Additional phone number."
    },
    "phone4": {
      "type": "string",
      "description": "Additional phone number."
    },
    "phone5": {
      "type": "string",
      "description": "Additional phone number."
    },
    "picture_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the profile picture document."
    },
    "position": {
      "type": "string",
      "description": "Job title or position of the contact."
    },
    "quick_account_name": {
      "type": "string",
      "description": "Free-text company name used when the contact is not linked to an actual Account record. Lets integrators capture the company without creating a separate Account."
    },
    "share_mode": {
      "type": "integer",
      "description": "Sharing model applied on top of the owner/unit visibility (e.g. shared with selected sales units or selected users). The matching sharing_units / sharing_clients lists control who is granted access.\n\nInteger enum value: 0 - Standard, 1 - Private, 2 - AllView, 3 - AllEdit",
      "enum": [
        0,
        1,
        2,
        3
      ]
    },
    "state_province": {
      "type": "string",
      "description": "State or province of the contact address."
    },
    "title": {
      "type": "string",
      "description": "Honorific or salutation prefix (e.g. Mr., Ms., Dr.) shown before the name."
    },
    "unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the sales unit."
    },
    "zip_code": {
      "type": "string",
      "description": "ZIP or postal code of the contact address."
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    },
    "social_media": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uri"
        }
      },
      "description": "Social network profiles linked to this contact (e.g. LinkedIn, Facebook).\n\nRelation to ContactSocialRelation, see: 'updateContactSocialRelationInput' object for properties."
    },
    "account_relations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ContactAccountRelation, see: 'updateContactAccountRelationInput' object for properties."
      },
      "description": "Accounts this contact is linked to. Each link records the role and position the contact has at the related account."
    },
    "sharing_units": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ContactSharingSalesUnitRelation, see: 'updateContactSharingSalesUnitRelationInput' object for properties."
      },
      "description": "Sales units that have been granted shared access to this contact. Editable only when share_mode allows unit sharing."
    },
    "sharing_clients": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ContactSharingClientRelation, see: 'updateContactSharingClientRelationInput' object for properties."
      },
      "description": "Users that have been granted shared access to this contact. Editable only when share_mode allows user sharing."
    },
    "documents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to CloudObjectRelation, see: 'updateCloudObjectRelationInput' object for properties."
      },
      "description": "Documents linked to this contact."
    },
    "exchange_entity_id": {
      "type": "string",
      "description": "External identifier of the record in the linked third-party service (e.g. Google, Microsoft 365, Exchange). Maintained by the sync engine."
    },
    "gapi_entity_id": {
      "type": "string",
      "description": "External identifier of the record in the linked third-party service (e.g. Google, Microsoft 365, Exchange). Maintained by the sync engine."
    },
    "o365_entity_id": {
      "type": "string",
      "description": "External identifier of the record in the linked third-party service (e.g. Google, Microsoft 365, Exchange). Maintained by the sync engine."
    },
    "primary_account_account_roles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ContactAccountAccountRoleRelation, see: 'updateContactAccountAccountRoleRelationInput' object for properties."
      },
      "description": "Roles of Contact in his primary Account."
    },
    "account_position": {
      "type": "string",
      "description": "Job position of Contact in his primary Account or quick account position if Contact has no primary Account."
    },
    "is_unsubscribed": {
      "type": "boolean",
      "description": "If account has any unsubscribed email."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to TagRelation, see: 'updateTagRelationInput' object for properties."
      },
      "description": "Tag labels applied to this contact."
    },
    "static_profiles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ProfileRelation, see: 'updateProfileRelationInput' object for properties."
      },
      "description": "Saved view profiles this contact currently matches."
    },
    "primary_account_relationship": {
      "type": "string",
      "description": "Org chart relationship of Contact in his primary Account."
    }
  }
}