Sets the duration of a Job Type.
The id of the Job Type.
The duration of the Job Type, works as a multiple of 0.25 e.g 1.25 => 1 hour 15 minutes
FM_api( 'JobType_setDuration',[ 'id' => '122039', 'val' => '25.5' ] );
With "val" as 25.5, you should get 2 days, 8 hours and 30 minutes. (If each day were equal to 8.5 hours)
If there is no id given or it is less than 1
If there is no value given or it is less than 0
If a valid id is given however there isn't a Job Type assigned with the given id.
Last updated 4 months ago
{"ok":1}
{"error":"missing or invalid parameter: id"}
{"error":"missing or invalid parameter: val"}
{"error":"job type does not exist"}