---
title: "Create a new Job Activity"
method: POST
path: "/jobactivity.json"
tags: ["Job Activities"]
---

# Create a new Job Activity

`POST /jobactivity.json`

#### 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.

## Request body

- JobActivity
  - `uuid` string, uuid — Unique identifier for this record
  - `active` 0 | 1 — Record active/deleted flag. Valid values are [0,1]. Valid values are [0,1]
  - `edit_date` string — Timestamp at which record was last modified
  - `job_uuid` string, uuid
  - `staff_uuid` string, uuid
  - `start_date` string
  - `end_date` string
  - `activity_was_scheduled` string
  - `activity_was_recorded` string
  - `activity_was_automated` string
  - `has_been_opened` string
  - `has_been_opened_timestamp` string
  - `travel_time_in_seconds` string
  - `travel_distance_in_meters` string
  - `allocated_by_staff_uuid` string, uuid
  - `allocated_timestamp` string
  - `material_uuid` string, uuid
  - `edit_by_staff_uuid` string, uuid — UUID of Staff Member who last modified record

## Response `200`

Success

- Result
  - `errorCode` number
  - `message` string

## Other responses

- `400` — Bad Request
- `default` — Unexpected error

---

[API](https://skmtc.dev/servicem8/apis/servicem8-api.md) · [All operations](https://skmtc.dev/servicem8/apis/servicem8-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/servicem8/servicem8-api/revisions/dfd49e8f5d1b/schema)
