{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/comp-ai/json-schema/comp-ai-update-people-dto-schema.json",
  "title": "UpdatePeopleDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/comp-ai-people-api-openapi.yml#/components/schemas/UpdatePeopleDto",
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "description": "User ID to associate with this member"
    },
    "role": {
      "type": "string",
      "description": "Role for the member (built-in role name or custom role ID)"
    },
    "department": {
      "type": "string",
      "description": "Member department. Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.",
      "maxLength": 64
    },
    "isActive": {
      "type": "boolean",
      "description": "Whether to deactivate this member (soft delete)"
    },
    "fleetDmLabelId": {
      "type": "number",
      "description": "FleetDM label ID for member devices"
    },
    "jobTitle": {
      "type": "string",
      "description": "Job title for the member"
    },
    "name": {
      "type": "string",
      "description": "Name of the associated user"
    },
    "email": {
      "type": "string",
      "description": "Email of the associated user"
    },
    "createdAt": {
      "type": "string",
      "description": "Member join date (createdAt override)"
    },
    "backgroundCheckExempt": {
      "type": "boolean",
      "description": "When true, this member is exempt from the org-level background check requirement and will count as complete in people scores."
    },
    "backgroundCheckExemptReason": {
      "type": "string",
      "description": "Reason code for the exemption (e.g. \"contractor_with_vendor_check\", \"other\"). Persisted alongside backgroundCheckExempt and cleared when the member becomes non-exempt."
    },
    "backgroundCheckExemptJustification": {
      "type": "string",
      "description": "Free-text justification for the exemption, attached to the audit log. Cleared when the member becomes non-exempt."
    },
    "onboardDate": {
      "type": "object",
      "description": "Employee onboard date"
    },
    "offboardDate": {
      "type": "object",
      "description": "Employee offboard date"
    }
  }
}