KamoCRM

ServiceJobApi.createJob, and the back-link builder

Featurekamo-internal
Shipped
27 ஆகஸ்ட், 2026 அன்று 5:02 PM UTC
Author
kamo
Commit
82587e3

Restores the client half of SW6c Task 2, which landed as 157fa714 and was dropped by a history rewrite in a concurrent session; the create screen itself survived inside bddd3617 and has been importing both of these since. `createJob` posts `CreateJobInput` at the base path and answers with the detail projection, so a caller may adopt the returned job whole. Seven fields and not one column the server owns: no status, no job number, no totals, no sign-off. SW6b removed exactly those five from `JobInput` after finding `PUT /{uid}` accepted them verbatim, and `CreateJobInput` joins the contract test's input pairs so a `status` added on this side alone fails rather than being serialised and silently ignored. `commerceBackHref` is documented at its definition: `/commerce?tab=service` never named a real tab, and every caller today passes no market because no service record carries one.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing