ja
予約見積もりを発火する(FIXED アクション — ビジネス)

見積もりを発火する(FIXED アクション — ビジネス)

見積もりを送信します: quoted_at + duration カラムを設定し、pending_action を confirm_booking に進めます。ステータスは `booking` のままです。

引数

idstringpath必須
ジョブリクエスト ID
crewarray<object>body任意
Crew — 複数人プラン(テクニシャンリード + バディ)です。省略/空 = 単独(リード 100%)。指定する場合は is_lead がちょうど 1 つで、wrench_percent の合計が 100 である必要があります。MULTIPERSON_CREW_DESIGN.md を参照してください。
is_leadbooleanbody任意
Whether this slot is the crew lead. Exactly one slot must set it.
skill_idsarray<string>body任意
UUIDs of the skills this slot requires (hard filter for the matching engine). Optional; up to 20.
wrench_percentintegerbody任意
This slot's share of the job's man-hours, in percent (1–100). Shares across all slots must sum to 100.
demobilization_minutesintegerbody任意
Demobilization (teardown) minutes added after the work. Optional, min 0.
job_duration_minutesintegerbody必須
Hands-on work duration in minutes (man-minutes for a crew job). Required, min 1.
mobilization_minutesintegerbody任意
Mobilization (setup/travel-prep) minutes added before the work. Optional, min 0.
status_versionintegerbody任意
Optimistic-lock fence: the status_version from your last read. Omitted/0 = fence on the row's current version (no race protection).
POST/v1/job-requests/{id}/quote
curl -X POST "https://api.crisphive.com/v1/job-requests/9b2f6c3e-1a4d-4f0a-8f2e-7c5d1b3a9e01/quote" \
  -H "Authorization: Bearer chsk_test_4eC8xQ9mZ2pL7Ka0rT" \
  -H "Content-Type: application/json" \
  -d '{
  "crew": [
    {
      "is_lead": true,
      "skill_ids": [
        "9b2f6c3e-1a4d-4f0a-8f2e-7c5d1b3a9e01"
      ],
      "wrench_percent": 50
    }
  ],
  "demobilization_minutes": 15,
  "job_duration_minutes": 120,
  "mobilization_minutes": 15,
  "status_version": 1
}'
リクエストボディ
{
"crew": [
{
"is_lead": ,
"skill_ids": [
],
"wrench_percent":
}
],
"demobilization_minutes": ,
"job_duration_minutes": ,
"mobilization_minutes": ,
"status_version":
}

レスポンス