JobTypes

Create a new Job Type

Changed on

Creates a new Job Type and returns the created Job Type object.

post/v2/jobtypes

Request

Headers

Authorizationstring required
Example:Bearer <token>

Bearer Token

Request body

namestring required

The name of the job type.

avgDurationnumber

The average duration in minutes.

displayOrdernumber required

The position of the job type in the display list.

disabledboolean

Indicates whether the job type is disabled or not.

applyToSubAccountsboolean

When true, the job type is also created on all franchise sub-accounts.

Example request

{
  "name": "Some type",
  "avgDuration": 60,
  "displayOrder": 1,
  "applyToSubAccounts": true
}

Response

The created Job Type.

idstring

The ID of the job type (prefix JT-).

namestring

The name of the job type.

avgDurationnumber

The average duration of the job type in minutes.

displayOrdernumber

The display order of the job type.

disabledboolean

Indicates whether the job type is disabled or not.

Example response

{
  "id": "JT-8718036049ec4c4d",
  "name": "Cleaning",
  "avgDuration": 60,
  "displayOrder": 1
}

Changes

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status