{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-users-v1-users-service-start-create-or-update-users-job-body-schema.json",
  "title": "s12.users.v1.UsersService.StartCreateOrUpdateUsersJobBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/safetyculture-bulk-user-operations-api-openapi.yml#/components/schemas/s12.users.v1.UsersService.StartCreateOrUpdateUsersJobBody",
  "type": "object",
  "properties": {
    "validate_only": {
      "type": "boolean",
      "description": "If this job should be validate only."
    },
    "email_settings": {
      "allOf": [
        {
          "$ref": "#/$defs/s12.users.v1.EmailSettings"
        }
      ],
      "description": "Optional. Email settings for new users that are created - defaults to sending an email if not provided.\nOverwritten by more specific EmailSettings on the individual user (as specified on InitCreateOrUpdateUsersJobRequest)"
    },
    "password_settings": {
      "description": "Optional. Password settings for users in this job.",
      "allOf": [
        {
          "$ref": "#/$defs/s12.common.PasswordSettings"
        }
      ]
    }
  },
  "$defs": {
    "s12.common.PasswordSettings": {
      "type": "object",
      "properties": {
        "require_password_reset": {
          "type": "boolean"
        }
      },
      "title": "Parameters to force password reset for a user"
    },
    "s12.users.v1.EmailSettings": {
      "type": "object",
      "properties": {
        "send_email": {
          "type": "boolean",
          "description": "Send a welcome email to newly created users."
        }
      }
    }
  }
}