Job Activities

Create a new Job Activity

OAuth Scope

This endpoint requires the following OAuth scope manage_schedule.

Record UUID

UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the x-record-uuid response header.

post/jobactivity.json

Request body

job_uuidstring uuid

The UUID of the job this activity belongs to

staff_uuidstring uuid

The UUID of the staff member assigned to this activity

start_datestring

The scheduled start date and time of the activity

end_datestring

The scheduled end date and time of the activity

activity_was_scheduledstring

Boolean flag indicating whether this activity was scheduled in advance. Cannot be true if activity_was_recorded is true.

activity_was_recordedstring

Boolean flag indicating whether this activity was recorded after completion rather than scheduled in advance. Cannot be true if activity_was_scheduled is true.

activity_was_automatedstring

Integer flag indicating if the activity was automated: 0

has_been_openedstring

Boolean flag indicating whether the assigned staff member has viewed this job activity. Resets to false if the staff member or start time is changed. Only relevant when activity_was_scheduled is true.

has_been_opened_timestampstring

The date and time when the assigned staff member first viewed this job activity. Format is YYYY-MM-DD HH:MM:SS. Resets when staff member or start time is changed. Only relevant when activity_was_scheduled is true.

travel_time_in_secondsinteger

The estimated travel time to reach this activity location in seconds

travel_distance_in_metersinteger

The estimated travel distance to reach this activity location in meters

{"stackTrail":"components:schemas:JobActivityCreate:properties:allocated_by_staff_uuid","oasType":"schema","type":"unknown","description":"DEPRECATED"}
{"stackTrail":"components:schemas:JobActivityCreate:properties:allocated_timestamp","oasType":"schema","type":"unknown","description":"DEPRECATED"}
material_uuidstring uuid

The UUID of the material associated with this activity. Used to determine the cost of the activity.

uuidstring uuid

Unique identifier for this record

edit_by_staff_uuidstring uuid

UUID of Staff Member who last modified record

Example request

{
  "job_uuid": "123e4567-1452-4158-a6a2-23482d85f7eb",
  "staff_uuid": "123e4567-28f4-4739-a669-23482f16c0bb",
  "start_date": "2025-09-01 12:00:00",
  "end_date": "2025-09-01 12:00:00",
  "has_been_opened_timestamp": "2025-09-01 12:00:00",
  "material_uuid": "123e4567-e0ec-4c7b-8f16-234824a1bbcb",
  "uuid": "123e4567-b31a-427a-843e-234828db36bb",
  "edit_by_staff_uuid": "123e4567-42e9-4d34-994b-23482e7cc18b"
}

Response

Success

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes