← InícioFleetPay / Schema

VehicleCreateInput

Estrutura preservada do contrato versionado da API.

Descrições técnicas preservadas do contrato versionado. Exemplos de dados foram omitidos da cópia pública.

platestringObrigatório
pattern"^[A-Z]{3}[0-9][A-Z0-9][0-9]{2}$"
plate_statestring | nullOpcional
minLength2
maxLength2
renavamstring | nullOpcional
pattern"^\\d{11}$"
tare_kgnumber | nullOpcional
minimum0
capacity_kgnumber | nullOpcional
minimum0
capacity_m3number | nullOpcional
minimum0
axlesnumber | nullOpcional
minimum0
maximum255
body_typenumber | nullOpcional
minimum0
maximum255
wheel_typenumber | nullOpcional
minimum0
maximum255
owner_typestring | nullOpcional
"own" · "third"
owner_documentstring | nullOpcional
maxLength14
owner_namestring | nullOpcional
maxLength120
owner_rntrcstring | nullOpcional
maxLength8
default_driver_user_idinteger | nullOpcional
minimum1
Definição JSON Completa
{
  "type": "object",
  "required": [
    "plate"
  ],
  "properties": {
    "plate": {
      "type": "string",
      "pattern": "^[A-Z]{3}[0-9][A-Z0-9][0-9]{2}$"
    },
    "plate_state": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 2,
      "maxLength": 2
    },
    "renavam": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^\\d{11}$"
    },
    "tare_kg": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "capacity_kg": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "capacity_m3": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "axles": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 255
    },
    "body_type": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 255
    },
    "wheel_type": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 255
    },
    "owner_type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "own",
        "third"
      ],
      "default": "own"
    },
    "owner_document": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 14
    },
    "owner_name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 120
    },
    "owner_rntrc": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 8
    },
    "default_driver_user_id": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1
    }
  }
}