Skip to main content
POST
/
assembly
/
{id}
/
complete
Complete an assembly task
curl --request POST \
  --url https://api.autoprintfarm.com/public/v1/assembly/{id}/complete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "quantity_completed": 2,
  "notes": "<string>"
}
'
{
  "success": true,
  "data": {
    "task": {
      "id": "<string>",
      "product_name": "<string>",
      "sku": "<string>",
      "quantity": 123,
      "notes": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "completed_at": "<string>"
    },
    "quantity_completed": 123
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Path Parameters

id
string
required

Assembly task ID

Body

application/json
quantity_completed
integer

Units completed in this call (defaults to the task's full quantity)

Required range: x >= 1
notes
string

Optional completion note; appended to existing notes with a --- separator

Maximum string length: 2000

Response

Completed

success
enum<boolean>
required
Available options:
true
data
object
required