Endpoint for Drivers to Mark Tasks as Started
Body
-
Task ID
-
Additional properties are allowed.
POST
/api/yard-task/start
curl \
-X POST https://api-dev.gatego.io/api/yard-task/start \
-H "Content-Type: application/json" \
-d '[{"task_id":1,"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,
"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)
{}