MobiariDocs
Admin APIManufacturing

Start a build job

POST
/stores/{store_id}/build-jobs/{job_id}/start

Moves units of a queued job to the bench. Starting fewer than the job quantity splits it: a new in_progress batch carries the started units and the original keeps the rest, queued. Answers with the started batch.

Authorization

bearer_auth
AuthorizationBearer <token>

Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.

In: header

Path Parameters

store_id*string

Store id

Formatuuid
job_id*string

Build job id

Formatuuid

Header Parameters

Idempotency-Key?string

A unique value (e.g. a UUID) per logical request. Retrying with the same key within 24 hours replays the first response instead of repeating the side effect; the replay carries Idempotent-Replayed: true. Reusing a key for a different request is a 422 idempotency_key_reused; retrying while the first is still running is a 409 idempotency_request_in_progress. JSON bodies up to 1 MB.

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/build-jobs/497f6eca-6276-4993-bfeb-53cbbbba6f08/start" \  -H "Content-Type: application/json" \  -d '{    "quantity": 1  }'
{
  "cancelled_at": "2019-08-24T14:15:22Z",
  "completed_at": "2019-08-24T14:15:22Z",
  "components": [
    {
      "available": 0,
      "component_variant_id": "481a5540-d72a-4c04-af90-fc3242a9dca2",
      "missing": 0,
      "name": "string",
      "required": 0,
      "reserved": 0,
      "sku": "string"
    }
  ],
  "created_at": "2019-08-24T14:15:22Z",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "lead_time_days": 0,
  "metadata_json": {},
  "notes": "string",
  "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",
  "order_item_id": "c3e40b5c-b9ae-413a-b96e-5aa0514f5ae6",
  "order_number": "string",
  "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
  "product_title": "string",
  "quantity": 0,
  "requested_at": "2019-08-24T14:15:22Z",
  "started_at": "2019-08-24T14:15:22Z",
  "status": "queued",
  "store_id": "7fe87115-950c-4ae8-bd7e-970406bc9ac0",
  "target_ready_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6",
  "variant_sku": "string",
  "variant_title": "string"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}