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

uuidstring uuid

Unique identifier for this record

active0 | 1

Record active/deleted flag. Valid values are [0,1]. Valid values are [0,1]

edit_datestring

Timestamp at which record was last modified

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
activity_was_recordedstring
activity_was_automatedstring
has_been_openedstring
has_been_opened_timestampstring
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

allocated_by_staff_uuidstring uuid
allocated_timestampstring
material_uuidstring uuid

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

edit_by_staff_uuidstring uuid

UUID of Staff Member who last modified record

Example request

{
  "uuid": "123e4567-825b-459e-b123-2329b922c33b",
  "edit_date": "2025-08-01 12:00:00",
  "job_uuid": "123e4567-5903-4e68-b94c-2329b9cf1b1b",
  "staff_uuid": "123e4567-705d-406e-97dd-2329be0fdccb",
  "start_date": "2025-08-01 12:00:00",
  "end_date": "2025-08-01 12:00:00",
  "has_been_opened_timestamp": "2025-08-01 12:00:00",
  "allocated_by_staff_uuid": "123e4567-d0fa-431e-b556-2329ba5b886b",
  "allocated_timestamp": "2025-08-01 12:00:00",
  "material_uuid": "123e4567-a899-4f07-a251-2329b60a7a8b",
  "edit_by_staff_uuid": "123e4567-8da6-4122-83c4-2329b05af9ab"
}

Response

Success

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes