{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-create-account-input-schema.json",
  "title": "createAccountInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-account-api-openapi.yml#/components/schemas/createAccountInput",
  "properties": {
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "Last modification time.",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time."
    },
    "picture": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uri"
        }
      },
      "description": "Profile picture or company logo associated with the account.\n\nRelation to CloudObject, see: 'createCloudObjectInput' object for properties."
    },
    "account_class": {
      "type": "integer",
      "description": "Manual classification grade assigned to the account. Used in segmentation and reporting.\n\nInteger enum value: 1 - NoClass, 2 - ClassA, 3 - ClassB, 4 - ClassC, 5 - ClassD",
      "enum": [
        1,
        2,
        3,
        4,
        5
      ]
    },
    "account_type_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the account type assigned to this account."
    },
    "address": {
      "type": "string",
      "description": "Street address of the account."
    },
    "city": {
      "type": "string",
      "description": "City of the account address."
    },
    "comments": {
      "type": "string",
      "description": "Free-form notes describing the account."
    },
    "country": {
      "type": "string",
      "description": "Country of the account address."
    },
    "currency_exchange_rates_list_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the currency exchange rate list applied to this account."
    },
    "customer_type_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the customer type."
    },
    "email1": {
      "type": "string",
      "description": "Primary email address of the account. 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."
    },
    "home_page": {
      "type": "string",
      "description": "Website URL of the account. May be auto-filled from the primary email domain when domain extraction is enabled."
    },
    "industry_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the industry classification."
    },
    "is_archived": {
      "type": "boolean",
      "description": "True when the account has been archived. Archived accounts remain readable but are hidden from active lists and cannot be edited until reactivated."
    },
    "last_ai_account_hierarchy_applied": {
      "type": "string",
      "format": "date-time",
      "description": "Time when an AI-suggested account hierarchy was last applied to this account."
    },
    "last_ai_org_chart_applied": {
      "type": "string",
      "format": "date-time",
      "description": "Time when an AI-suggested org chart was last applied to this account."
    },
    "name": {
      "type": "string",
      "description": "Name of the entity and its default text representation."
    },
    "owner_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the account owner."
    },
    "parent_account_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the parent account."
    },
    "parent_account_relation_type_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the parent-account relationship type."
    },
    "phone1": {
      "type": "string",
      "description": "Primary phone number of the account. 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."
    },
    "quick_parent_account_name": {
      "type": "string",
      "description": "Free-text parent-account name used when the parent has not been linked to an actual Account record. Lets integrators note the relationship without creating a separate parent 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 account address."
    },
    "unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the sales unit."
    },
    "zip_code": {
      "type": "string",
      "description": "ZIP or postal code of the account 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 account (e.g. LinkedIn, Facebook).\n\nRelation to AccountSocialRelation, see: 'createAccountSocialRelationInput' object for properties."
    },
    "sharing_units": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to AccountSharingSalesUnitRelation, see: 'createAccountSharingSalesUnitRelationInput' object for properties."
      },
      "description": "Sales units that have been granted shared access to this account. Editable only when share_mode allows unit sharing."
    },
    "sharing_clients": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to AccountSharingClientRelation, see: 'createAccountSharingClientRelationInput' object for properties."
      },
      "description": "Users that have been granted shared access to this account. 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: 'createCloudObjectRelationInput' object for properties."
      },
      "description": "Documents linked to this 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: 'createTagRelationInput' object for properties."
      },
      "description": "Tag labels applied to this account."
    },
    "static_profiles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ProfileRelation, see: 'createProfileRelationInput' object for properties."
      },
      "description": "Saved view profiles this account currently matches."
    }
  },
  "required": [
    "name",
    "owner_id"
  ]
}