Creates or updates a 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

Request Formats :

application/json, text/json

Sample:
{
  "id": "9cee9d99-b9ba-4b56-80e1-e5f7b72791d7",
  "jobs_id": "b233861c-984c-4696-85ca-8f0c3b60a068",
  "job_name": "sample string 3",
  "date_from": "2026-09-16T08:35:35.4748669+00:00",
  "date_to": "2026-09-16T08:35:35.4748669+00:00",
  "job_status_id": "e344ce81-b9f3-446a-98bb-bc3abe73ac1a",
  "sys_logical_delete": true,
  "field_accept_date_max_timeout": "2026-09-16T08:35:35.4748669+00:00",
  "dateutc_in_progress": "2026-09-16T08:35:35.4748669+00:00",
  "modified_dateutc": "2026-09-16T08:35:35.4748669+00:00",
  "user_id": "93ba9b7a-bdac-4b2e-b962-2a8e0b1b76d7",
  "travel_to": 12,
  "travel_back": 13
}

application/xml, text/xml

Sample:
<job_planning xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <date_from>2026-09-16T08:35:35.474Z</date_from>
  <date_to>2026-09-16T08:35:35.474Z</date_to>
  <dateutc_in_progress>2026-09-16T08:35:35.474Z</dateutc_in_progress>
  <field_accept_date_max_timeout>2026-09-16T08:35:35.474Z</field_accept_date_max_timeout>
  <id>9cee9d99-b9ba-4b56-80e1-e5f7b72791d7</id>
  <job_name>sample string 3</job_name>
  <job_status_id>e344ce81-b9f3-446a-98bb-bc3abe73ac1a</job_status_id>
  <jobs_id>b233861c-984c-4696-85ca-8f0c3b60a068</jobs_id>
  <modified_dateutc>2026-09-16T08:35:35.474Z</modified_dateutc>
  <sys_logical_delete>true</sys_logical_delete>
  <travel_back>13</travel_back>
  <travel_to>12</travel_to>
  <user_id>93ba9b7a-bdac-4b2e-b962-2a8e0b1b76d7</user_id>
</job_planning>

Response Information

Resource Description :

IHttpActionResult containing the saved job planning.

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

Response Formats

application/json, text/json

Sample:
{
  "id": "7ca919cb-8f4f-4d5a-852e-852768101211",
  "jobs_id": "19a1fc08-0187-4379-8e0d-1cc2746307b1",
  "job_name": "sample string 3",
  "date_from": "2026-09-16T08:35:35.5044906+00:00",
  "date_to": "2026-09-16T08:35:35.5044906+00:00",
  "job_status_id": "55d5bc02-b42e-4fd8-874d-6d5d5c6e5d8d",
  "sys_logical_delete": true,
  "field_accept_date_max_timeout": "2026-09-16T08:35:35.5044906+00:00",
  "dateutc_in_progress": "2026-09-16T08:35:35.5044906+00:00",
  "modified_dateutc": "2026-09-16T08:35:35.5044906+00:00",
  "user_id": "485e8358-3e7b-4940-8a3a-84b2a08de833",
  "travel_to": 12,
  "travel_back": 13
}

application/xml, text/xml

Sample:
<job_planning xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <date_from>2026-09-16T08:35:35.504Z</date_from>
  <date_to>2026-09-16T08:35:35.504Z</date_to>
  <dateutc_in_progress>2026-09-16T08:35:35.504Z</dateutc_in_progress>
  <field_accept_date_max_timeout>2026-09-16T08:35:35.504Z</field_accept_date_max_timeout>
  <id>7ca919cb-8f4f-4d5a-852e-852768101211</id>
  <job_name>sample string 3</job_name>
  <job_status_id>55d5bc02-b42e-4fd8-874d-6d5d5c6e5d8d</job_status_id>
  <jobs_id>19a1fc08-0187-4379-8e0d-1cc2746307b1</jobs_id>
  <modified_dateutc>2026-09-16T08:35:35.504Z</modified_dateutc>
  <sys_logical_delete>true</sys_logical_delete>
  <travel_back>13</travel_back>
  <travel_to>12</travel_to>
  <user_id>485e8358-3e7b-4940-8a3a-84b2a08de833</user_id>
</job_planning>