{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mri-software/json-schema/mri-software-staff-request-schema.json",
  "title": "StaffRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mri-software-employees-api-openapi.yml#/components/schemas/StaffRequest",
  "required": [
    "name",
    "location"
  ],
  "properties": {
    "name": {
      "type": "string",
      "format": "string"
    },
    "title": {
      "type": "string",
      "format": "string"
    },
    "altname": {
      "type": "string",
      "format": "string"
    },
    "email": {
      "type": "string",
      "format": "string"
    },
    "phone": {
      "type": "string",
      "format": "string"
    },
    "mobile": {
      "type": "string",
      "format": "string"
    },
    "ice": {
      "type": "string",
      "format": "string"
    },
    "employee_id": {
      "type": "integer",
      "format": "int32"
    },
    "onsite_status": {
      "type": "string",
      "format": "string"
    },
    "location": {
      "type": "string",
      "format": "string"
    },
    "roletype": {
      "type": "array",
      "items": {
        "format": "string"
      }
    },
    "customfields": {
      "description": "This field is deprecated and will be removed in the future. Please use the `cf` field instead.",
      "type": "array",
      "items": {
        "format": "string"
      },
      "deprecated": true
    },
    "cf": {
      "description": "This will return an object of custom fields set for employees. The key of the custom field corresponds to the ID of the custom fields when using the Customfield endpoint",
      "type": "object",
      "additionalProperties": true
    },
    "globalroaming": {
      "description": "This determines whether the employee has global roaming permission.",
      "type": "integer",
      "format": "int32",
      "enum": [
        0,
        1
      ]
    },
    "globalroaming_locations": {
      "description": "The IDs of the global roaming locations to which the employee has access. This field is effective when `globalroaming` is set to `true` or the `globalroaming` parameter is ommitted and the employee already has global roaming permission.",
      "type": "array",
      "items": {
        "format": "integer"
      }
    }
  },
  "type": "object"
}