{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rethink-behavioral-health/json-schema/rethink-behavioral-health-update-staff-member-request-model-schema.json",
  "title": "UpdateStaffMemberRequestModel",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rethink-behavioral-health-openapi.json#/components/schemas/UpdateStaffMemberRequestModel",
  "required": [
    "email",
    "firstName",
    "lastName",
    "roleId",
    "statusId",
    "timeZoneId",
    "username"
  ],
  "type": "object",
  "properties": {
    "staffId": {
      "type": "integer",
      "format": "int32"
    },
    "username": {
      "maxLength": 100,
      "minLength": 0,
      "pattern": "^.{6,}$",
      "type": "string"
    },
    "statusId": {
      "type": "integer",
      "format": "int32"
    },
    "companyStaffId": {
      "maxLength": 100,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "firstName": {
      "maxLength": 100,
      "minLength": 0,
      "type": "string"
    },
    "middleName": {
      "maxLength": 100,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "lastName": {
      "maxLength": 100,
      "minLength": 0,
      "type": "string"
    },
    "dateOfBirth": {
      "maxLength": 10,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "phone": {
      "maxLength": 13,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "addressStreet": {
      "maxLength": 100,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "maxLength": 100,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "stateId": {
      "maximum": 52,
      "minimum": 1,
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "zipCode": {
      "maxLength": 9,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "timeZoneId": {
      "type": "integer",
      "format": "int32"
    },
    "locationIds": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "employeeTypeId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "roleId": {
      "type": "integer",
      "format": "int32"
    },
    "email": {
      "maxLength": 200,
      "minLength": 0,
      "type": "string",
      "format": "email"
    },
    "npiNumber": {
      "maxLength": 10,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "medicaidNumber": {
      "maxLength": 15,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "practionerId": {
      "maxLength": 20,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "taxonomyCode": {
      "maxLength": 10,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "ssn": {
      "maxLength": 11,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "supervisorId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "serviceLineIds": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/StaffServiceLineRequestModel"
      }
    },
    "staffAvailabilities": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/StaffAvailabilityRequestModel"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "DayOfWeek": {
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "type": "integer",
      "format": "int32"
    },
    "StaffAvailabilityRequestModel": {
      "required": [
        "dayId",
        "endTime",
        "startTime"
      ],
      "type": "object",
      "properties": {
        "staffAvailabilityId": {
          "type": "integer",
          "format": "int32"
        },
        "dayId": {
          "$ref": "#/$defs/DayOfWeek"
        },
        "startTime": {
          "minLength": 1,
          "type": "string"
        },
        "endTime": {
          "minLength": 1,
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "StaffServiceLineRequestModel": {
      "type": "object",
      "properties": {
        "serviceLineId": {
          "type": "integer",
          "format": "int32"
        },
        "funderIds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "additionalProperties": false
    }
  }
}