Creates a new job planning.

Request Information

URI Parameters :

None.

Body Parameters :

job_planning
NameDescriptionTypeAdditional information
id

Primary key

globally unique identifier

Required

jobs_id

FK to jobs.id

globally unique identifier
job_name

jobs.name

string
date_from

Date from. Defaults to when absent from the request body.

date
date_to

Date to. Defaults to when absent from the request body.

date
job_status_id

FK to job_status.id

globally unique identifier
sys_logical_delete

Soft-delete flag: when true, this planning slot is considered deleted, optimizing synchronization (can be physically deleted offline).

boolean
field_accept_date_max_timeout

Date max time out for field accept. Defaults to when absent from the request body.

date
dateutc_in_progress

Date utc when job is put in progress. Defaults to when absent from the request body.

date
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating. Defaults to , which the repositories read as "never modified" (they compare against year 1980).

date
user_id

Foreign key of the user (technician) this planning slot is assigned to.

globally unique identifier
travel_to

Estimated travel time to reach the job's location, in minutes.

integer
travel_back

Estimated travel time to return from the job's location, in minutes.

integer
is_locked

Whether a planner has locked this planning slot on the portal (FSA-6084). A locked slot cannot be rescheduled or re-assigned by the technician. The app has no feature to set or change this — it only reads the portal's value on sync.

boolean

Request Formats :

application/json, text/json

Sample:
{
  "id": "fc1f3983-ef4a-49d3-966a-0ef1a42c2812",
  "jobs_id": "9058d5ad-fb3d-4400-88ce-8778c2191a7c",
  "job_name": "sample string 3",
  "date_from": "2026-11-12T14:28:04.9783323+00:00",
  "date_to": "2026-11-12T14:28:04.9783323+00:00",
  "job_status_id": "a71f659c-0977-45e0-b146-d358c6cfcbcb",
  "sys_logical_delete": true,
  "field_accept_date_max_timeout": "2026-11-12T14:28:04.9783323+00:00",
  "dateutc_in_progress": "2026-11-12T14:28:04.9783323+00:00",
  "modified_dateutc": "2026-11-12T14:28:04.9783323+00:00",
  "user_id": "130eff80-4258-4b72-b9c7-bae796ca46f6",
  "travel_to": 12,
  "travel_back": 13,
  "is_locked": true
}

application/xml, text/xml

Sample:
<job_planning xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <date_from>2026-11-12T14:28:04.978Z</date_from>
  <date_to>2026-11-12T14:28:04.978Z</date_to>
  <dateutc_in_progress>2026-11-12T14:28:04.978Z</dateutc_in_progress>
  <field_accept_date_max_timeout>2026-11-12T14:28:04.978Z</field_accept_date_max_timeout>
  <id>fc1f3983-ef4a-49d3-966a-0ef1a42c2812</id>
  <is_locked>true</is_locked>
  <job_name>sample string 3</job_name>
  <job_status_id>a71f659c-0977-45e0-b146-d358c6cfcbcb</job_status_id>
  <jobs_id>9058d5ad-fb3d-4400-88ce-8778c2191a7c</jobs_id>
  <modified_dateutc>2026-11-12T14:28:04.978Z</modified_dateutc>
  <sys_logical_delete>true</sys_logical_delete>
  <travel_back>13</travel_back>
  <travel_to>12</travel_to>
  <user_id>130eff80-4258-4b72-b9c7-bae796ca46f6</user_id>
</job_planning>

Response Information

Resource Description :

IHttpActionResult containing the created job planning.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.