# Submit inspection with pass/fail (/docs/api-reference/quality/QualityController_submitInspection)

`POST /api/factories/{factoryId}/quality/inspections/{id}/submit`

Base URL: https://api.xentr.ai

Authentication: bearer token (`Authorization: Bearer <token>`).

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `factoryId` | path | yes | string | Factory ID |
| `id` | path | yes | string | Record ID |

## Request body

Required.

Content type: `application/json`

```json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "Final status after review.",
      "enum": [
        "pass",
        "fail",
        "conditional"
      ],
      "example": "pass"
    },
    "notes": {
      "type": "string",
      "description": "Submission notes (reason for conditional/fail, corrective action, etc.).",
      "example": "All characteristics within spec."
    }
  },
  "required": [
    "status"
  ]
}
```

## Responses

### 201