{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assignar/json-schema/assignar-contact-schema.json",
  "title": "Contact",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assignar-contacts-api-openapi.yml#/components/schemas/Contact",
  "type": "object",
  "required": [
    "first_name",
    "last_name"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "first_name": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "company": {
      "type": "string"
    },
    "office_phone": {
      "type": "string"
    },
    "mobile": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "job_title": {
      "type": "string"
    },
    "address_1": {
      "type": "string"
    },
    "address_2": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "postcode": {
      "type": "string"
    },
    "comments": {
      "type": "string"
    },
    "external_id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modified_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "tags": {
      "type": "array",
      "description": "Tag associations. Supply on create or update; echoed back on create when the request included tags.",
      "items": {
        "type": "object",
        "properties": {
          "tag_id": {
            "type": "integer"
          }
        }
      }
    }
  }
}