{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-batch-update-device-position-request-schema.json",
  "title": "BatchUpdateDevicePositionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-location-service-positions-api-openapi.yml#/components/schemas/BatchUpdateDevicePositionRequest",
  "type": "object",
  "properties": {
    "TrackerName": {
      "type": "string",
      "description": "The name of the tracker resource to update."
    },
    "Updates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DevicePositionUpdate"
      },
      "description": "Contains the position update details for each device, up to 10 devices."
    }
  },
  "required": [
    "TrackerName",
    "Updates"
  ],
  "$defs": {
    "DevicePositionUpdate": {
      "type": "object",
      "properties": {
        "DeviceId": {
          "type": "string",
          "description": "The device associated to the position update."
        },
        "SampleTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp at which the device's position was determined. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ"
        },
        "Position": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "The latest device position defined in WGS 84 format: [X or longitude, Y or latitude]."
        },
        "Accuracy": {
          "$ref": "#/$defs/PositionalAccuracy"
        },
        "PositionProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Associates one of more properties with the position update. A property is a key-value pair stored with the position update and added to any geofence event the update may trigger. Format: \"key\" : \"value\""
        }
      },
      "required": [
        "DeviceId",
        "SampleTime",
        "Position"
      ]
    },
    "PositionalAccuracy": {
      "type": "object",
      "properties": {
        "Horizontal": {
          "type": "number",
          "description": "Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface."
        }
      },
      "required": [
        "Horizontal"
      ]
    }
  }
}