{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-create-client-input-schema.json",
  "title": "createClientInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-client-api-openapi.yml#/components/schemas/createClientInput",
  "properties": {
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "Last modification time.",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time.",
      "readOnly": true
    },
    "default_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the default sales unit."
    },
    "email": {
      "type": "string",
      "description": "Email. Readonly information from UserProfile."
    },
    "first_name": {
      "type": "string",
      "description": "First name. Readonly information from UserProfile.",
      "readOnly": true
    },
    "last_active": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of the user's most recent login or API request.",
      "readOnly": true
    },
    "last_name": {
      "type": "string",
      "description": "Last name. Readonly information from UserProfile.",
      "readOnly": true
    },
    "master_right_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the assigned user role."
    },
    "middle_name": {
      "type": "string",
      "description": "Middle name. Readonly information from UserProfile.",
      "readOnly": true
    },
    "phone": {
      "type": "string",
      "description": "Phone number. Readonly information from UserProfile.",
      "readOnly": true
    },
    "position": {
      "type": "string",
      "description": "Job title or position of the user."
    },
    "region": {
      "type": "string",
      "description": "Region. Readonly information from UserProfile.",
      "readOnly": true
    },
    "timezone": {
      "type": "string",
      "description": "Timezone offset (DEPRECATED)Readonly information from UserProfile.",
      "readOnly": true
    },
    "type": {
      "type": "integer",
      "description": "Field whose values are strictly defined with an enumeration of values.\n\nInteger enum value: 0 - Customer, 1 - Support",
      "enum": [
        0,
        1
      ]
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    },
    "unit_membership": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to SalesUnitClientRelation, see: 'createSalesUnitClientRelationInput' object for properties."
      },
      "description": "Sales units the user belongs to (as member or manager)."
    },
    "appointment_favorite": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ClientFavorite, see: 'createClientFavoriteInput' object for properties."
      },
      "description": "Appointments marked as favorite by the user."
    },
    "task_favorite": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ClientFavorite, see: 'createClientFavoriteInput' object for properties."
      },
      "description": "Tasks marked as favorite by the user."
    },
    "account_favorite": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ClientFavorite, see: 'createClientFavoriteInput' object for properties."
      },
      "description": "Accounts marked as favorite by the user."
    },
    "contact_favorite": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ClientFavorite, see: 'createClientFavoriteInput' object for properties."
      },
      "description": "Contacts marked as favorite by the user."
    },
    "profile_favorite": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ClientFavorite, see: 'createClientFavoriteInput' object for properties."
      },
      "description": "Screen profiles marked as favorite by the user."
    },
    "report_favorite": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ClientFavorite, see: 'createClientFavoriteInput' object for properties."
      },
      "description": "Reports marked as favorite by the user."
    },
    "lead_favorite": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ClientFavorite, see: 'createClientFavoriteInput' object for properties."
      },
      "description": "Leads marked as favorite by the user."
    },
    "opportunity_favorite": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ClientFavorite, see: 'createClientFavoriteInput' object for properties."
      },
      "description": "Opportunities marked as favorite by the user."
    }
  },
  "required": [
    "default_unit_id",
    "email",
    "master_right_id",
    "unit_membership"
  ]
}