task_type=1 (Immediate Task); other values are rejected with 400.{
"task_type": 1,
"repeat_type": 0,
"interval": 1,
"dom": [
1
],
"dow": [
1
],
"time_zone": "string_value",
"sn": "1ZNBH1D00B00GX",
"name": "example_name",
"resumable_status": "auto",
"out_of_control_action_in_flight": 1,
"rth_altitude": 1,
"wayline_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"default_name": "example_name"
}curl --location '/openapi/v2.0/task/api/v1/workspaces//flight-tasks/reject-takeoff' \
--header 'x-user-token;' \
--header 'x-user-token;' \
--header 'X-Request-Id: 5dff27bd-693c-4ace-979d-e26e920d497a' \
--header 'X-Request-Id;' \
--header 'X-Project-Uuid;' \
--header 'Content-Type: application/json' \
--data '{
"task_type": 1,
"repeat_type": 0,
"interval": 1,
"dom": [
1
],
"dow": [
1
],
"time_zone": "string_value",
"sn": "1ZNBH1D00B00GX",
"name": "example_name",
"resumable_status": "auto",
"out_of_control_action_in_flight": 1,
"rth_altitude": 1,
"wayline_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"default_name": "example_name"
}'{
"code": 0,
"message": "OK",
"data": {
"blocked": false,
"reasons": []
}
}