Endpoint for Drivers to Mark Tasks as Completed

POST /api/yard-task/complete
application/json

Body

  • task_id integer(int32) Required

    Task ID

  • last_latitude number(double) Required

    Last latitude

  • last_longitude number(double) Required

    Last longitude

  • completed_at object Required

    Additional properties are allowed.

    Hide completed_at attributes Show completed_at attributes object
    • year integer(int32) Deprecated
    • month integer(int32) Deprecated
    • date integer(int32) Deprecated
    • day integer(int32) Deprecated
    • hours integer(int32) Deprecated
    • minutes integer(int32) Deprecated
    • seconds integer(int32) Deprecated
    • time_impl integer(int64)
    • timezone_offset integer(int32) Deprecated
    • calendar_date object

      Additional properties are allowed.

      Hide calendar_date attributes Show calendar_date attributes object
      • era object

        Additional properties are allowed.

        Hide era attributes Show era attributes object
        • name string
        • abbr string
        • since integer(int64)
        • since_date object

          Additional properties are allowed.

          Hide since_date attributes Show since_date attributes object
          • era object

            Additional properties are allowed.

          • year integer(int32)
          • month integer(int32)
          • day_of_month integer(int32)
          • day_of_week integer(int32)
          • leap_year boolean
          • hours integer(int32)
          • minutes integer(int32)
          • seconds integer(int32)
          • millis integer(int32)
          • fraction integer(int64)
          • normalized boolean
          • zoneinfo object

            Additional properties are allowed.

            Hide zoneinfo attributes Show zoneinfo attributes object
            • id string
            • raw_offset integer(int32)
            • i_d string
            • display_name string
            • d_stsavings integer(int32)
          • zone_offset integer(int32)
          • daylight_saving integer(int32)
          • force_standard_time boolean
          • locale object

            Additional properties are allowed.

            Hide locale attributes Show locale attributes object
            • language string
            • script string
            • country string
            • variant string
            • extension_keys array[string(byte)]
            • unicode_locale_attributes array[string]
            • unicode_locale_keys array[string]
            • i_so3_language string
            • i_so3_country string
            • display_language string
            • display_script string
            • display_country string
            • display_variant string
            • display_name string
          • time_of_day integer(int64)
          • standard_time boolean
          • daylight_time boolean
          • zone object

            Additional properties are allowed.

            Hide zone attributes Show zone attributes object
            • id string
            • raw_offset integer(int32)
            • i_d string
            • display_name string
            • d_stsavings integer(int32)
        • local_time boolean
        • hash integer(int32)
        • abbreviation string
      • year integer(int32)
      • month integer(int32)
      • day_of_month integer(int32)
      • day_of_week integer(int32)
      • leap_year boolean
      • hours integer(int32)
      • minutes integer(int32)
      • seconds integer(int32)
      • millis integer(int32)
      • fraction integer(int64)
      • normalized boolean
      • zoneinfo object

        Additional properties are allowed.

        Hide zoneinfo attributes Show zoneinfo attributes object
        • id string
        • raw_offset integer(int32)
        • i_d string
        • display_name string
        • d_stsavings integer(int32)
      • zone_offset integer(int32)
      • daylight_saving integer(int32)
      • force_standard_time boolean
      • locale object

        Additional properties are allowed.

        Hide locale attributes Show locale attributes object
        • language string
        • script string
        • country string
        • variant string
        • extension_keys array[string(byte)]
        • unicode_locale_attributes array[string]
        • unicode_locale_keys array[string]
        • i_so3_language string
        • i_so3_country string
        • display_language string
        • display_script string
        • display_country string
        • display_variant string
        • display_name string
      • time_of_day integer(int64)
      • standard_time boolean
      • daylight_time boolean
      • zone object

        Additional properties are allowed.

        Hide zone attributes Show zone attributes object
        • id string
        • raw_offset integer(int32)
        • i_d string
        • display_name string
        • d_stsavings integer(int32)
      • cached_year integer(int32)
      • cached_fixed_date_jan1 integer(int64)
      • cached_fixed_date_next_jan1 integer(int64)
      • normalized_year integer(int32)
      • cached_jan1 integer(int64)
    • nanos integer(int32)
    • time integer(int64)
  • started_at object Required

    Additional properties are allowed.

    Hide started_at attributes Show started_at attributes object
    • year integer(int32) Deprecated
    • month integer(int32) Deprecated
    • date integer(int32) Deprecated
    • day integer(int32) Deprecated
    • hours integer(int32) Deprecated
    • minutes integer(int32) Deprecated
    • seconds integer(int32) Deprecated
    • time_impl integer(int64)
    • timezone_offset integer(int32) Deprecated
    • calendar_date object

      Additional properties are allowed.

      Hide calendar_date attributes Show calendar_date attributes object
      • era object

        Additional properties are allowed.

        Hide era attributes Show era attributes object
        • name string
        • abbr string
        • since integer(int64)
        • since_date object

          Additional properties are allowed.

          Hide since_date attributes Show since_date attributes object
          • era object

            Additional properties are allowed.

          • year integer(int32)
          • month integer(int32)
          • day_of_month integer(int32)
          • day_of_week integer(int32)
          • leap_year boolean
          • hours integer(int32)
          • minutes integer(int32)
          • seconds integer(int32)
          • millis integer(int32)
          • fraction integer(int64)
          • normalized boolean
          • zoneinfo object

            Additional properties are allowed.

            Hide zoneinfo attributes Show zoneinfo attributes object
            • id string
            • raw_offset integer(int32)
            • i_d string
            • display_name string
            • d_stsavings integer(int32)
          • zone_offset integer(int32)
          • daylight_saving integer(int32)
          • force_standard_time boolean
          • locale object

            Additional properties are allowed.

            Hide locale attributes Show locale attributes object
            • language string
            • script string
            • country string
            • variant string
            • extension_keys array[string(byte)]
            • unicode_locale_attributes array[string]
            • unicode_locale_keys array[string]
            • i_so3_language string
            • i_so3_country string
            • display_language string
            • display_script string
            • display_country string
            • display_variant string
            • display_name string
          • time_of_day integer(int64)
          • standard_time boolean
          • daylight_time boolean
          • zone object

            Additional properties are allowed.

            Hide zone attributes Show zone attributes object
            • id string
            • raw_offset integer(int32)
            • i_d string
            • display_name string
            • d_stsavings integer(int32)
        • local_time boolean
        • hash integer(int32)
        • abbreviation string
      • year integer(int32)
      • month integer(int32)
      • day_of_month integer(int32)
      • day_of_week integer(int32)
      • leap_year boolean
      • hours integer(int32)
      • minutes integer(int32)
      • seconds integer(int32)
      • millis integer(int32)
      • fraction integer(int64)
      • normalized boolean
      • zoneinfo object

        Additional properties are allowed.

        Hide zoneinfo attributes Show zoneinfo attributes object
        • id string
        • raw_offset integer(int32)
        • i_d string
        • display_name string
        • d_stsavings integer(int32)
      • zone_offset integer(int32)
      • daylight_saving integer(int32)
      • force_standard_time boolean
      • locale object

        Additional properties are allowed.

        Hide locale attributes Show locale attributes object
        • language string
        • script string
        • country string
        • variant string
        • extension_keys array[string(byte)]
        • unicode_locale_attributes array[string]
        • unicode_locale_keys array[string]
        • i_so3_language string
        • i_so3_country string
        • display_language string
        • display_script string
        • display_country string
        • display_variant string
        • display_name string
      • time_of_day integer(int64)
      • standard_time boolean
      • daylight_time boolean
      • zone object

        Additional properties are allowed.

        Hide zone attributes Show zone attributes object
        • id string
        • raw_offset integer(int32)
        • i_d string
        • display_name string
        • d_stsavings integer(int32)
      • cached_year integer(int32)
      • cached_fixed_date_jan1 integer(int64)
      • cached_fixed_date_next_jan1 integer(int64)
      • normalized_year integer(int32)
      • cached_jan1 integer(int64)
    • nanos integer(int32)
    • time integer(int64)

Responses

  • default application/json

    Tasks marked as completed successfully

    Additional properties are allowed.

  • 401

    Not Authorized

  • 403

    Not Allowed

POST /api/yard-task/complete
curl \
 --request POST 'https://api-dev.gatego.io/api/yard-task/complete' \
 --header "Content-Type: application/json" \
 --data '[{"task_id":1,"last_latitude":1.0,"last_longitude":1.0,"completed_at":{"year":42,"month":42,"date":42,"day":42,"hours":42,"minutes":42,"seconds":42,"time_impl":42,"timezone_offset":42,"calendar_date":{"era":{"name":"string","abbr":"string","since":42,"since_date":{"era":{},"year":42,"month":42,"day_of_month":42,"day_of_week":42,"leap_year":true,"hours":42,"minutes":42,"seconds":42,"millis":42,"fraction":42,"normalized":true,"zoneinfo":{"id":"string","raw_offset":42,"i_d":"string","display_name":"string","d_stsavings":42},"zone_offset":42,"daylight_saving":42,"force_standard_time":true,"locale":{"language":"string","script":"string","country":"string","variant":"string","extension_keys":["string"],"unicode_locale_attributes":["string"],"unicode_locale_keys":["string"],"i_so3_language":"string","i_so3_country":"string","display_language":"string","display_script":"string","display_country":"string","display_variant":"string","display_name":"string"},"time_of_day":42,"standard_time":true,"daylight_time":true,"zone":{"id":"string","raw_offset":42,"i_d":"string","display_name":"string","d_stsavings":42}},"local_time":true,"hash":42,"abbreviation":"string"},"year":42,"month":42,"day_of_month":42,"day_of_week":42,"leap_year":true,"hours":42,"minutes":42,"seconds":42,"millis":42,"fraction":42,"normalized":true,"zoneinfo":{"id":"string","raw_offset":42,"i_d":"string","display_name":"string","d_stsavings":42},"zone_offset":42,"daylight_saving":42,"force_standard_time":true,"locale":{"language":"string","script":"string","country":"string","variant":"string","extension_keys":["string"],"unicode_locale_attributes":["string"],"unicode_locale_keys":["string"],"i_so3_language":"string","i_so3_country":"string","display_language":"string","display_script":"string","display_country":"string","display_variant":"string","display_name":"string"},"time_of_day":42,"standard_time":true,"daylight_time":true,"zone":{"id":"string","raw_offset":42,"i_d":"string","display_name":"string","d_stsavings":42},"cached_year":42,"cached_fixed_date_jan1":42,"cached_fixed_date_next_jan1":42,"normalized_year":42,"cached_jan1":42},"nanos":42,"time":42},"started_at":{"year":42,"month":42,"date":42,"day":42,"hours":42,"minutes":42,"seconds":42,"time_impl":42,"timezone_offset":42,"calendar_date":{"era":{"name":"string","abbr":"string","since":42,"since_date":{"era":{},"year":42,"month":42,"day_of_month":42,"day_of_week":42,"leap_year":true,"hours":42,"minutes":42,"seconds":42,"millis":42,"fraction":42,"normalized":true,"zoneinfo":{"id":"string","raw_offset":42,"i_d":"string","display_name":"string","d_stsavings":42},"zone_offset":42,"daylight_saving":42,"force_standard_time":true,"locale":{"language":"string","script":"string","country":"string","variant":"string","extension_keys":["string"],"unicode_locale_attributes":["string"],"unicode_locale_keys":["string"],"i_so3_language":"string","i_so3_country":"string","display_language":"string","display_script":"string","display_country":"string","display_variant":"string","display_name":"string"},"time_of_day":42,"standard_time":true,"daylight_time":true,"zone":{"id":"string","raw_offset":42,"i_d":"string","display_name":"string","d_stsavings":42}},"local_time":true,"hash":42,"abbreviation":"string"},"year":42,"month":42,"day_of_month":42,"day_of_week":42,"leap_year":true,"hours":42,"minutes":42,"seconds":42,"millis":42,"fraction":42,"normalized":true,"zoneinfo":{"id":"string","raw_offset":42,"i_d":"string","display_name":"string","d_stsavings":42},"zone_offset":42,"daylight_saving":42,"force_standard_time":true,"locale":{"language":"string","script":"string","country":"string","variant":"string","extension_keys":["string"],"unicode_locale_attributes":["string"],"unicode_locale_keys":["string"],"i_so3_language":"string","i_so3_country":"string","display_language":"string","display_script":"string","display_country":"string","display_variant":"string","display_name":"string"},"time_of_day":42,"standard_time":true,"daylight_time":true,"zone":{"id":"string","raw_offset":42,"i_d":"string","display_name":"string","d_stsavings":42},"cached_year":42,"cached_fixed_date_jan1":42,"cached_fixed_date_next_jan1":42,"normalized_year":42,"cached_jan1":42},"nanos":42,"time":42}}]'
Request examples
[
  {
    "task_id": 1,
    "last_latitude": 1.0,
    "last_longitude": 1.0,
    "completed_at": {
      "year": 42,
      "month": 42,
      "date": 42,
      "day": 42,
      "hours": 42,
      "minutes": 42,
      "seconds": 42,
      "time_impl": 42,
      "timezone_offset": 42,
      "calendar_date": {
        "era": {
          "name": "string",
          "abbr": "string",
          "since": 42,
          "since_date": {
            "era": {},
            "year": 42,
            "month": 42,
            "day_of_month": 42,
            "day_of_week": 42,
            "leap_year": true,
            "hours": 42,
            "minutes": 42,
            "seconds": 42,
            "millis": 42,
            "fraction": 42,
            "normalized": true,
            "zoneinfo": {
              "id": "string",
              "raw_offset": 42,
              "i_d": "string",
              "display_name": "string",
              "d_stsavings": 42
            },
            "zone_offset": 42,
            "daylight_saving": 42,
            "force_standard_time": true,
            "locale": {
              "language": "string",
              "script": "string",
              "country": "string",
              "variant": "string",
              "extension_keys": [
                "string"
              ],
              "unicode_locale_attributes": [
                "string"
              ],
              "unicode_locale_keys": [
                "string"
              ],
              "i_so3_language": "string",
              "i_so3_country": "string",
              "display_language": "string",
              "display_script": "string",
              "display_country": "string",
              "display_variant": "string",
              "display_name": "string"
            },
            "time_of_day": 42,
            "standard_time": true,
            "daylight_time": true,
            "zone": {
              "id": "string",
              "raw_offset": 42,
              "i_d": "string",
              "display_name": "string",
              "d_stsavings": 42
            }
          },
          "local_time": true,
          "hash": 42,
          "abbreviation": "string"
        },
        "year": 42,
        "month": 42,
        "day_of_month": 42,
        "day_of_week": 42,
        "leap_year": true,
        "hours": 42,
        "minutes": 42,
        "seconds": 42,
        "millis": 42,
        "fraction": 42,
        "normalized": true,
        "zoneinfo": {
          "id": "string",
          "raw_offset": 42,
          "i_d": "string",
          "display_name": "string",
          "d_stsavings": 42
        },
        "zone_offset": 42,
        "daylight_saving": 42,
        "force_standard_time": true,
        "locale": {
          "language": "string",
          "script": "string",
          "country": "string",
          "variant": "string",
          "extension_keys": [
            "string"
          ],
          "unicode_locale_attributes": [
            "string"
          ],
          "unicode_locale_keys": [
            "string"
          ],
          "i_so3_language": "string",
          "i_so3_country": "string",
          "display_language": "string",
          "display_script": "string",
          "display_country": "string",
          "display_variant": "string",
          "display_name": "string"
        },
        "time_of_day": 42,
        "standard_time": true,
        "daylight_time": true,
        "zone": {
          "id": "string",
          "raw_offset": 42,
          "i_d": "string",
          "display_name": "string",
          "d_stsavings": 42
        },
        "cached_year": 42,
        "cached_fixed_date_jan1": 42,
        "cached_fixed_date_next_jan1": 42,
        "normalized_year": 42,
        "cached_jan1": 42
      },
      "nanos": 42,
      "time": 42
    },
    "started_at": {
      "year": 42,
      "month": 42,
      "date": 42,
      "day": 42,
      "hours": 42,
      "minutes": 42,
      "seconds": 42,
      "time_impl": 42,
      "timezone_offset": 42,
      "calendar_date": {
        "era": {
          "name": "string",
          "abbr": "string",
          "since": 42,
          "since_date": {
            "era": {},
            "year": 42,
            "month": 42,
            "day_of_month": 42,
            "day_of_week": 42,
            "leap_year": true,
            "hours": 42,
            "minutes": 42,
            "seconds": 42,
            "millis": 42,
            "fraction": 42,
            "normalized": true,
            "zoneinfo": {
              "id": "string",
              "raw_offset": 42,
              "i_d": "string",
              "display_name": "string",
              "d_stsavings": 42
            },
            "zone_offset": 42,
            "daylight_saving": 42,
            "force_standard_time": true,
            "locale": {
              "language": "string",
              "script": "string",
              "country": "string",
              "variant": "string",
              "extension_keys": [
                "string"
              ],
              "unicode_locale_attributes": [
                "string"
              ],
              "unicode_locale_keys": [
                "string"
              ],
              "i_so3_language": "string",
              "i_so3_country": "string",
              "display_language": "string",
              "display_script": "string",
              "display_country": "string",
              "display_variant": "string",
              "display_name": "string"
            },
            "time_of_day": 42,
            "standard_time": true,
            "daylight_time": true,
            "zone": {
              "id": "string",
              "raw_offset": 42,
              "i_d": "string",
              "display_name": "string",
              "d_stsavings": 42
            }
          },
          "local_time": true,
          "hash": 42,
          "abbreviation": "string"
        },
        "year": 42,
        "month": 42,
        "day_of_month": 42,
        "day_of_week": 42,
        "leap_year": true,
        "hours": 42,
        "minutes": 42,
        "seconds": 42,
        "millis": 42,
        "fraction": 42,
        "normalized": true,
        "zoneinfo": {
          "id": "string",
          "raw_offset": 42,
          "i_d": "string",
          "display_name": "string",
          "d_stsavings": 42
        },
        "zone_offset": 42,
        "daylight_saving": 42,
        "force_standard_time": true,
        "locale": {
          "language": "string",
          "script": "string",
          "country": "string",
          "variant": "string",
          "extension_keys": [
            "string"
          ],
          "unicode_locale_attributes": [
            "string"
          ],
          "unicode_locale_keys": [
            "string"
          ],
          "i_so3_language": "string",
          "i_so3_country": "string",
          "display_language": "string",
          "display_script": "string",
          "display_country": "string",
          "display_variant": "string",
          "display_name": "string"
        },
        "time_of_day": 42,
        "standard_time": true,
        "daylight_time": true,
        "zone": {
          "id": "string",
          "raw_offset": 42,
          "i_d": "string",
          "display_name": "string",
          "d_stsavings": 42
        },
        "cached_year": 42,
        "cached_fixed_date_jan1": 42,
        "cached_fixed_date_next_jan1": 42,
        "normalized_year": 42,
        "cached_jan1": 42
      },
      "nanos": 42,
      "time": 42
    }
  }
]
Response examples (default)
{}