{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/avetta/main/json-schema/avetta-request-structure-password-schema.json",
  "title": "requestStructurePassword",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/avetta-worker-v1-openapi.yml#/components/schemas/requestStructurePassword",
  "type": "object",
  "properties": {
    "grant_type": {
      "description": "Type of access requested. For new tokens, use 'password'.",
      "type": "string",
      "enum": [
        "password"
      ]
    },
    "username": {
      "description": "Username of the user.",
      "type": "string",
      "format": "string"
    },
    "password": {
      "description": "Password of the user.",
      "type": "string",
      "format": "string"
    },
    "device": {
      "description": "ID of the device.",
      "type": "string",
      "format": "string"
    }
  },
  "required": [
    "grant_type",
    "device",
    "username",
    "password"
  ]
}