updateJobType
Rename a job type or change its availability
Edits a catalog entry in place. A rename applies to NEW bookings only: every job stores the job-type name it was booked with, so existing and completed jobs keep their original label.
Partial update: omit a field to keep it. name rejects "" because a type must stay identifiable, and must stay unique (JOB_TYPE_DUPLICATE). Setting status to inactive is the reversible way to take a type off the booking form; inactive types are refused for new job requests.
Default quote bundle: default_duration_minutes / default_mobilization_minutes / default_demobilization_minutes follow the same partial rule; omit to keep, 0 to clear, a value to set. Clearing the duration while a buffer stays is refused (JOB_TYPE_INVALID_DEFAULT_DURATION).
priority follows the same partial rule: omit to keep, "" to clear, p0..p3 to set (JOB_TYPE_INVALID_PRIORITY otherwise). A change applies to FUTURE bookings only; existing jobs keep their priority and their surcharge snapshot.
Rows the platform ships with (is_system=true, e.g. the default "General" type) keep their name and status read-only (JOB_TYPE_SYSTEM_READ_ONLY); their default quote bundle IS editable. Create your own type if you need different wording.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "updateJobType"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Job Type ID | |
| name | No | nil = keep; min=1 rejects an explicit "". | |
| status | No | ||
| priority | No | Priority a job of this type is booked with when the booking request names none (p0..p3). Omit = keep, "" = clear, a value = set; editable on the system "General" type too. Changing it affects FUTURE bookings only. Refused with JOB_TYPE_INVALID_PRIORITY when not p0..p3 (legacy "emergency" = p0). | |
| default_duration_minutes | No | Default hands-on work duration in minutes for this kind of work (1–20160). A quote that sends no job_duration_minutes uses it, which is what lets an automation or voice agent schedule a job without knowing how long the work takes. Omit = keep, 0 = clear. | |
| default_mobilization_minutes | No | Default mobilization (setup/travel-prep) minutes, 0–1440; used together with the default duration. Requires a default duration. Omit = keep, 0 = clear. | |
| default_demobilization_minutes | No | Default demobilization (teardown) minutes, 0–1440; used together with the default duration. Requires a default duration. Omit = keep, 0 = clear. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The response payload. Omitted on error unless the error carries structured data. | |
| errors | No | Field-level validation details; present only for VALIDATION_ERROR responses. | |
| message | No | Human-readable message ("Success" or an error description), localized via the X-Locale header. | |
| error_code | No | 0 on success; a stable string error code on failure (e.g. CUSTOMER_NOT_FOUND). |