Skip to content

The Build Order Management section of the InvenTree API schema is documented below.

InvenTree API 180

API for InvenTree - the intuitive open source inventory management system


License: MIT

Servers

Description URL
http://localhost:8000 http://localhost:8000

build


GET /api/build/

Description

Generic handler for a download request.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
active query boolean No Build is active
assigned_to query number No responsible
assigned_to_me query boolean No assigned_to_me
has_project_code query boolean No has_project_code
issued_by query integer No
limit query integer No Number of results to return per page.
offset query integer No The initial index from which to return the results.
ordering query string No Which field to use when ordering the results.
overdue query boolean No Build is overdue
parent query integer No
part query integer No
project_code query integer No
reference query string No Filter by exact reference
sales_order query integer No
search query string No A search term.
status query integer No Status

Response 200 OK

{
    "count": 123,
    "next": "http://api.example.org/accounts/?offset=400&limit=100",
    "previous": "http://api.example.org/accounts/?offset=200&limit=100",
    "results": [
        {
            "barcode_hash": "string",
            "batch": "string",
            "completed": 0,
            "completion_date": "2022-04-13",
            "creation_date": "2022-04-13",
            "destination": 0,
            "issued_by": 0,
            "issued_by_detail": null,
            "link": "string",
            "notes": "string",
            "overdue": true,
            "parent": 0,
            "part": 0,
            "pk": 0,
            "priority": 0,
            "project_code": 0,
            "project_code_detail": null,
            "quantity": 10.12,
            "reference": "string",
            "responsible": 0,
            "responsible_detail": null,
            "sales_order": 0,
            "status": null,
            "status_text": "string",
            "take_from": 0,
            "target_date": "2022-04-13",
            "title": "string",
            "url": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "count": {
            "example": 123,
            "type": "integer"
        },
        "next": {
            "example": "http://api.example.org/accounts/?offset=400&limit=100",
            "format": "uri",
            "nullable": true,
            "type": "string"
        },
        "previous": {
            "example": "http://api.example.org/accounts/?offset=200&limit=100",
            "format": "uri",
            "nullable": true,
            "type": "string"
        },
        "results": {
            "items": {
                "$ref": "#/components/schemas/Build"
            },
            "type": "array"
        }
    },
    "type": "object"
}

POST /api/build/

Description

API endpoint for accessing a list of Build objects.

  • GET: Return list of objects (with filters)
  • POST: Create a new Build object

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"

Request body

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "required": [
        "barcode_hash",
        "completed",
        "creation_date",
        "issued_by_detail",
        "overdue",
        "part",
        "pk",
        "project_code_detail",
        "quantity",
        "reference",
        "responsible_detail",
        "status",
        "status_text",
        "url"
    ],
    "type": "object"
}

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "required": [
        "barcode_hash",
        "completed",
        "creation_date",
        "issued_by_detail",
        "overdue",
        "part",
        "pk",
        "project_code_detail",
        "quantity",
        "reference",
        "responsible_detail",
        "status",
        "status_text",
        "url"
    ],
    "type": "object"
}

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "required": [
        "barcode_hash",
        "completed",
        "creation_date",
        "issued_by_detail",
        "overdue",
        "part",
        "pk",
        "project_code_detail",
        "quantity",
        "reference",
        "responsible_detail",
        "status",
        "status_text",
        "url"
    ],
    "type": "object"
}

Response 201 Created

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "required": [
        "barcode_hash",
        "completed",
        "creation_date",
        "issued_by_detail",
        "overdue",
        "part",
        "pk",
        "project_code_detail",
        "quantity",
        "reference",
        "responsible_detail",
        "status",
        "status_text",
        "url"
    ],
    "type": "object"
}

DELETE /api/build/attachment/

Description

Perform a DELETE operation against this list endpoint.

We expect a list of primary-key (ID) values to be supplied as a JSON object, e.g. { items: [4, 8, 15, 16, 23, 42] }

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"

Response 204 No Content


GET /api/build/attachment/

Description

API endpoint for listing (and creating) BuildOrderAttachment objects.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
build query integer No
limit query integer No Number of results to return per page.
offset query integer No The initial index from which to return the results.
ordering query string No Which field to use when ordering the results.
search query string No A search term.

Response 200 OK

{
    "count": 123,
    "next": "http://api.example.org/accounts/?offset=400&limit=100",
    "previous": "http://api.example.org/accounts/?offset=200&limit=100",
    "results": [
        {
            "attachment": "string",
            "build": 0,
            "comment": "string",
            "filename": "string",
            "link": "string",
            "pk": 0,
            "upload_date": "2022-04-13",
            "user": 0,
            "user_detail": null
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "count": {
            "example": 123,
            "type": "integer"
        },
        "next": {
            "example": "http://api.example.org/accounts/?offset=400&limit=100",
            "format": "uri",
            "nullable": true,
            "type": "string"
        },
        "previous": {
            "example": "http://api.example.org/accounts/?offset=200&limit=100",
            "format": "uri",
            "nullable": true,
            "type": "string"
        },
        "results": {
            "items": {
                "$ref": "#/components/schemas/BuildAttachment"
            },
            "type": "array"
        }
    },
    "type": "object"
}

POST /api/build/attachment/

Description

API endpoint for listing (and creating) BuildOrderAttachment objects.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"

Request body

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "pk",
        "upload_date",
        "user_detail"
    ],
    "type": "object"
}

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "pk",
        "upload_date",
        "user_detail"
    ],
    "type": "object"
}

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "pk",
        "upload_date",
        "user_detail"
    ],
    "type": "object"
}

Response 201 Created

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "pk",
        "upload_date",
        "user_detail"
    ],
    "type": "object"
}

DELETE /api/build/attachment/{id}/

Description

Detail endpoint for a BuildOrderAttachment object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Response 204 No Content


GET /api/build/attachment/{id}/

Description

Detail endpoint for a BuildOrderAttachment object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Response 200 OK

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "pk",
        "upload_date",
        "user_detail"
    ],
    "type": "object"
}

PATCH /api/build/attachment/{id}/

Description

Detail endpoint for a BuildOrderAttachment object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "type": "object"
}

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "type": "object"
}

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "type": "object"
}

Response 200 OK

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "pk",
        "upload_date",
        "user_detail"
    ],
    "type": "object"
}

PUT /api/build/attachment/{id}/

Description

Detail endpoint for a BuildOrderAttachment object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "pk",
        "upload_date",
        "user_detail"
    ],
    "type": "object"
}

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "pk",
        "upload_date",
        "user_detail"
    ],
    "type": "object"
}

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "pk",
        "upload_date",
        "user_detail"
    ],
    "type": "object"
}

Response 200 OK

{
    "attachment": "string",
    "build": 0,
    "comment": "string",
    "filename": "string",
    "link": "string",
    "pk": 0,
    "upload_date": "2022-04-13",
    "user": 0,
    "user_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer for a BuildAttachment.",
    "properties": {
        "attachment": {
            "format": "uri",
            "type": "string"
        },
        "build": {
            "type": "integer"
        },
        "comment": {
            "description": "File comment",
            "maxLength": 100,
            "type": "string"
        },
        "filename": {
            "type": "string"
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "nullable": true,
            "type": "string"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "upload_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "user": {
            "description": "User",
            "nullable": true,
            "type": "integer"
        },
        "user_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "pk",
        "upload_date",
        "user_detail"
    ],
    "type": "object"
}

GET /api/build/item/

Description

API endpoint for accessing a list of BuildItem objects.

  • GET: Return list of objects
  • POST: Create a new BuildItem object

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
build query integer No
build_line query integer No
install_into query integer No
limit query integer No Number of results to return per page.
offset query integer No The initial index from which to return the results.
part query integer No
stock_item query integer No
tracked query boolean No Tracked

Response 200 OK

{
    "count": 123,
    "next": "http://api.example.org/accounts/?offset=400&limit=100",
    "previous": "http://api.example.org/accounts/?offset=200&limit=100",
    "results": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "count": {
            "example": 123,
            "type": "integer"
        },
        "next": {
            "example": "http://api.example.org/accounts/?offset=400&limit=100",
            "format": "uri",
            "nullable": true,
            "type": "string"
        },
        "previous": {
            "example": "http://api.example.org/accounts/?offset=200&limit=100",
            "format": "uri",
            "nullable": true,
            "type": "string"
        },
        "results": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "type": "array"
        }
    },
    "type": "object"
}

POST /api/build/item/

Description

API endpoint for accessing a list of BuildItem objects.

  • GET: Return list of objects
  • POST: Create a new BuildItem object

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"

Request body

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "build_line",
        "install_into",
        "location_detail",
        "part_detail",
        "pk",
        "quantity",
        "stock_item",
        "stock_item_detail"
    ],
    "type": "object"
}

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "build_line",
        "install_into",
        "location_detail",
        "part_detail",
        "pk",
        "quantity",
        "stock_item",
        "stock_item_detail"
    ],
    "type": "object"
}

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "build_line",
        "install_into",
        "location_detail",
        "part_detail",
        "pk",
        "quantity",
        "stock_item",
        "stock_item_detail"
    ],
    "type": "object"
}

Response 201 Created

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "build_line",
        "install_into",
        "location_detail",
        "part_detail",
        "pk",
        "quantity",
        "stock_item",
        "stock_item_detail"
    ],
    "type": "object"
}

DELETE /api/build/item/{id}/

Description

API endpoint for detail view of a BuildItem object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Response 204 No Content


GET /api/build/item/{id}/

Description

API endpoint for detail view of a BuildItem object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Response 200 OK

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "build_line",
        "install_into",
        "location_detail",
        "part_detail",
        "pk",
        "quantity",
        "stock_item",
        "stock_item_detail"
    ],
    "type": "object"
}

PATCH /api/build/item/{id}/

Description

API endpoint for detail view of a BuildItem object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "type": "object"
}

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "type": "object"
}

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "type": "object"
}

Response 200 OK

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "build_line",
        "install_into",
        "location_detail",
        "part_detail",
        "pk",
        "quantity",
        "stock_item",
        "stock_item_detail"
    ],
    "type": "object"
}

PUT /api/build/item/{id}/

Description

API endpoint for detail view of a BuildItem object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "build_line",
        "install_into",
        "location_detail",
        "part_detail",
        "pk",
        "quantity",
        "stock_item",
        "stock_item_detail"
    ],
    "type": "object"
}

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "build_line",
        "install_into",
        "location_detail",
        "part_detail",
        "pk",
        "quantity",
        "stock_item",
        "stock_item_detail"
    ],
    "type": "object"
}

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "build_line",
        "install_into",
        "location_detail",
        "part_detail",
        "pk",
        "quantity",
        "stock_item",
        "stock_item_detail"
    ],
    "type": "object"
}

Response 200 OK

{
    "build": 0,
    "build_line": 0,
    "install_into": 0,
    "location_detail": null,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "stock_item": 0,
    "stock_item_detail": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializes a BuildItem object.",
    "properties": {
        "build": {
            "readOnly": true,
            "type": "integer"
        },
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "install_into": {
            "description": "Destination stock item",
            "nullable": true,
            "type": "integer"
        },
        "location_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Location"
                }
            ],
            "readOnly": true
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "stock_item": {
            "description": "Source stock item",
            "type": "integer"
        },
        "stock_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/StockItemSerializerBrief"
                }
            ],
            "readOnly": true
        }
    },
    "required": [
        "build",
        "build_line",
        "install_into",
        "location_detail",
        "part_detail",
        "pk",
        "quantity",
        "stock_item",
        "stock_item_detail"
    ],
    "type": "object"
}

GET /api/build/item/{id}/metadata/

Description

Generic API endpoint for reading and editing metadata for a model.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Response 200 OK

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

PATCH /api/build/item/{id}/metadata/

Description

Generic API endpoint for reading and editing metadata for a model.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "type": "object"
}

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "type": "object"
}

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "type": "object"
}

Response 200 OK

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

PUT /api/build/item/{id}/metadata/

Description

Generic API endpoint for reading and editing metadata for a model.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

Response 200 OK

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

GET /api/build/line/

Description

API endpoint for accessing a list of BuildLine objects

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
allocated query boolean No Allocated
available query boolean No Available
bom_item query integer No
build query integer No
consumable query boolean No Consumable
limit query integer No Number of results to return per page.
offset query integer No The initial index from which to return the results.
optional query boolean No Optional
ordering query string No Which field to use when ordering the results.
search query string No A search term.
tracked query boolean No Tracked

Response 200 OK

{
    "count": 123,
    "next": "http://api.example.org/accounts/?offset=400&limit=100",
    "previous": "http://api.example.org/accounts/?offset=200&limit=100",
    "results": [
        {
            "allocated": 10.12,
            "allocations": [
                {
                    "build": 0,
                    "build_line": 0,
                    "install_into": 0,
                    "location_detail": null,
                    "part_detail": null,
                    "pk": 0,
                    "quantity": 10.12,
                    "stock_item": 0,
                    "stock_item_detail": null
                }
            ],
            "available_stock": 10.12,
            "available_substitute_stock": 10.12,
            "available_variant_stock": 10.12,
            "bom_item": 0,
            "bom_item_detail": null,
            "build": 0,
            "external_stock": 10.12,
            "in_production": 10.12,
            "on_order": 10.12,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "total_available_stock": 10.12
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "count": {
            "example": 123,
            "type": "integer"
        },
        "next": {
            "example": "http://api.example.org/accounts/?offset=400&limit=100",
            "format": "uri",
            "nullable": true,
            "type": "string"
        },
        "previous": {
            "example": "http://api.example.org/accounts/?offset=200&limit=100",
            "format": "uri",
            "nullable": true,
            "type": "string"
        },
        "results": {
            "items": {
                "$ref": "#/components/schemas/BuildLine"
            },
            "type": "array"
        }
    },
    "type": "object"
}

POST /api/build/line/

Description

API endpoint for accessing a list of BuildLine objects

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"

Request body

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "required": [
        "allocated",
        "allocations",
        "available_stock",
        "available_substitute_stock",
        "available_variant_stock",
        "bom_item",
        "bom_item_detail",
        "build",
        "external_stock",
        "in_production",
        "on_order",
        "part_detail",
        "pk",
        "quantity",
        "total_available_stock"
    ],
    "type": "object"
}

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "required": [
        "allocated",
        "allocations",
        "available_stock",
        "available_substitute_stock",
        "available_variant_stock",
        "bom_item",
        "bom_item_detail",
        "build",
        "external_stock",
        "in_production",
        "on_order",
        "part_detail",
        "pk",
        "quantity",
        "total_available_stock"
    ],
    "type": "object"
}

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "required": [
        "allocated",
        "allocations",
        "available_stock",
        "available_substitute_stock",
        "available_variant_stock",
        "bom_item",
        "bom_item_detail",
        "build",
        "external_stock",
        "in_production",
        "on_order",
        "part_detail",
        "pk",
        "quantity",
        "total_available_stock"
    ],
    "type": "object"
}

Response 201 Created

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "required": [
        "allocated",
        "allocations",
        "available_stock",
        "available_substitute_stock",
        "available_variant_stock",
        "bom_item",
        "bom_item_detail",
        "build",
        "external_stock",
        "in_production",
        "on_order",
        "part_detail",
        "pk",
        "quantity",
        "total_available_stock"
    ],
    "type": "object"
}

DELETE /api/build/line/{id}/

Description

API endpoint for detail view of a BuildLine object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Response 204 No Content


GET /api/build/line/{id}/

Description

API endpoint for detail view of a BuildLine object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Response 200 OK

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "required": [
        "allocated",
        "allocations",
        "available_stock",
        "available_substitute_stock",
        "available_variant_stock",
        "bom_item",
        "bom_item_detail",
        "build",
        "external_stock",
        "in_production",
        "on_order",
        "part_detail",
        "pk",
        "quantity",
        "total_available_stock"
    ],
    "type": "object"
}

PATCH /api/build/line/{id}/

Description

API endpoint for detail view of a BuildLine object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "type": "object"
}

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "type": "object"
}

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "type": "object"
}

Response 200 OK

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "required": [
        "allocated",
        "allocations",
        "available_stock",
        "available_substitute_stock",
        "available_variant_stock",
        "bom_item",
        "bom_item_detail",
        "build",
        "external_stock",
        "in_production",
        "on_order",
        "part_detail",
        "pk",
        "quantity",
        "total_available_stock"
    ],
    "type": "object"
}

PUT /api/build/line/{id}/

Description

API endpoint for detail view of a BuildLine object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "required": [
        "allocated",
        "allocations",
        "available_stock",
        "available_substitute_stock",
        "available_variant_stock",
        "bom_item",
        "bom_item_detail",
        "build",
        "external_stock",
        "in_production",
        "on_order",
        "part_detail",
        "pk",
        "quantity",
        "total_available_stock"
    ],
    "type": "object"
}

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "required": [
        "allocated",
        "allocations",
        "available_stock",
        "available_substitute_stock",
        "available_variant_stock",
        "bom_item",
        "bom_item_detail",
        "build",
        "external_stock",
        "in_production",
        "on_order",
        "part_detail",
        "pk",
        "quantity",
        "total_available_stock"
    ],
    "type": "object"
}

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "required": [
        "allocated",
        "allocations",
        "available_stock",
        "available_substitute_stock",
        "available_variant_stock",
        "bom_item",
        "bom_item_detail",
        "build",
        "external_stock",
        "in_production",
        "on_order",
        "part_detail",
        "pk",
        "quantity",
        "total_available_stock"
    ],
    "type": "object"
}

Response 200 OK

{
    "allocated": 10.12,
    "allocations": [
        {
            "build": 0,
            "build_line": 0,
            "install_into": 0,
            "location_detail": null,
            "part_detail": null,
            "pk": 0,
            "quantity": 10.12,
            "stock_item": 0,
            "stock_item_detail": null
        }
    ],
    "available_stock": 10.12,
    "available_substitute_stock": 10.12,
    "available_variant_stock": 10.12,
    "bom_item": 0,
    "bom_item_detail": null,
    "build": 0,
    "external_stock": 10.12,
    "in_production": 10.12,
    "on_order": 10.12,
    "part_detail": null,
    "pk": 0,
    "quantity": 10.12,
    "total_available_stock": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer for a BuildItem object.",
    "properties": {
        "allocated": {
            "format": "double",
            "readOnly": true,
            "title": "Allocated Stock",
            "type": "number"
        },
        "allocations": {
            "items": {
                "$ref": "#/components/schemas/BuildItem"
            },
            "readOnly": true,
            "type": "array"
        },
        "available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_substitute_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "available_variant_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "bom_item": {
            "readOnly": true,
            "type": "integer"
        },
        "bom_item_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BomItem"
                }
            ],
            "readOnly": true
        },
        "build": {
            "description": "Build object",
            "readOnly": true,
            "type": "integer"
        },
        "external_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "in_production": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "on_order": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Part"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "total_available_stock": {
            "format": "double",
            "readOnly": true,
            "type": "number"
        }
    },
    "required": [
        "allocated",
        "allocations",
        "available_stock",
        "available_substitute_stock",
        "available_variant_stock",
        "bom_item",
        "bom_item_detail",
        "build",
        "external_stock",
        "in_production",
        "on_order",
        "part_detail",
        "pk",
        "quantity",
        "total_available_stock"
    ],
    "type": "object"
}

GET /api/build/status/

Description

Retrieve information about a specific status code

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"

Response 200 OK

Response 400 Bad Request


DELETE /api/build/{id}/

Description

API endpoint for detail view of a Build object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Response 204 No Content


GET /api/build/{id}/

Description

API endpoint for detail view of a Build object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Response 200 OK

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "required": [
        "barcode_hash",
        "completed",
        "creation_date",
        "issued_by_detail",
        "overdue",
        "part",
        "pk",
        "project_code_detail",
        "quantity",
        "reference",
        "responsible_detail",
        "status",
        "status_text",
        "url"
    ],
    "type": "object"
}

PATCH /api/build/{id}/

Description

API endpoint for detail view of a Build object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "part_detail": null,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "type": "object"
}

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "part_detail": null,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "type": "object"
}

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "part_detail": null,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "part_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/PartBrief"
                }
            ],
            "readOnly": true
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "type": "object"
}

Response 200 OK

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "required": [
        "barcode_hash",
        "completed",
        "creation_date",
        "issued_by_detail",
        "overdue",
        "part",
        "pk",
        "project_code_detail",
        "quantity",
        "reference",
        "responsible_detail",
        "status",
        "status_text",
        "url"
    ],
    "type": "object"
}

PUT /api/build/{id}/

Description

API endpoint for detail view of a Build object.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "required": [
        "barcode_hash",
        "completed",
        "creation_date",
        "issued_by_detail",
        "overdue",
        "part",
        "pk",
        "project_code_detail",
        "quantity",
        "reference",
        "responsible_detail",
        "status",
        "status_text",
        "url"
    ],
    "type": "object"
}

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "required": [
        "barcode_hash",
        "completed",
        "creation_date",
        "issued_by_detail",
        "overdue",
        "part",
        "pk",
        "project_code_detail",
        "quantity",
        "reference",
        "responsible_detail",
        "status",
        "status_text",
        "url"
    ],
    "type": "object"
}

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "required": [
        "barcode_hash",
        "completed",
        "creation_date",
        "issued_by_detail",
        "overdue",
        "part",
        "pk",
        "project_code_detail",
        "quantity",
        "reference",
        "responsible_detail",
        "status",
        "status_text",
        "url"
    ],
    "type": "object"
}

Response 200 OK

{
    "barcode_hash": "string",
    "batch": "string",
    "completed": 0,
    "completion_date": "2022-04-13",
    "creation_date": "2022-04-13",
    "destination": 0,
    "issued_by": 0,
    "issued_by_detail": null,
    "link": "string",
    "notes": "string",
    "overdue": true,
    "parent": 0,
    "part": 0,
    "pk": 0,
    "priority": 0,
    "project_code": 0,
    "project_code_detail": null,
    "quantity": 10.12,
    "reference": "string",
    "responsible": 0,
    "responsible_detail": null,
    "sales_order": 0,
    "status": null,
    "status_text": "string",
    "take_from": 0,
    "target_date": "2022-04-13",
    "title": "string",
    "url": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializes a Build object.",
    "properties": {
        "barcode_hash": {
            "readOnly": true,
            "type": "string"
        },
        "batch": {
            "description": "Batch code for this build output",
            "maxLength": 100,
            "nullable": true,
            "title": "Batch Code",
            "type": "string"
        },
        "completed": {
            "description": "Number of stock items which have been completed",
            "readOnly": true,
            "title": "Completed items",
            "type": "integer"
        },
        "completion_date": {
            "format": "date",
            "nullable": true,
            "type": "string"
        },
        "creation_date": {
            "format": "date",
            "readOnly": true,
            "type": "string"
        },
        "destination": {
            "description": "Select location where the completed items will be stored",
            "nullable": true,
            "title": "Destination Location",
            "type": "integer"
        },
        "issued_by": {
            "description": "User who issued this build order",
            "nullable": true,
            "type": "integer"
        },
        "issued_by_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/User"
                }
            ],
            "readOnly": true
        },
        "link": {
            "description": "Link to external URL",
            "format": "uri",
            "maxLength": 200,
            "title": "External Link",
            "type": "string"
        },
        "notes": {
            "description": "Markdown notes (optional)",
            "maxLength": 50000,
            "nullable": true,
            "type": "string"
        },
        "overdue": {
            "readOnly": true,
            "type": "boolean"
        },
        "parent": {
            "description": "BuildOrder to which this build is allocated",
            "nullable": true,
            "title": "Parent Build",
            "type": "integer"
        },
        "part": {
            "description": "Select part to build",
            "type": "integer"
        },
        "pk": {
            "readOnly": true,
            "title": "ID",
            "type": "integer"
        },
        "priority": {
            "description": "Priority of this build order",
            "minimum": 0,
            "title": "Build Priority",
            "type": "integer"
        },
        "project_code": {
            "description": "Project code for this build order",
            "nullable": true,
            "type": "integer"
        },
        "project_code_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/ProjectCode"
                }
            ],
            "readOnly": true
        },
        "quantity": {
            "format": "double",
            "type": "number"
        },
        "reference": {
            "type": "string"
        },
        "responsible": {
            "description": "User or group responsible for this build order",
            "nullable": true,
            "type": "integer"
        },
        "responsible_detail": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Owner"
                }
            ],
            "readOnly": true
        },
        "sales_order": {
            "description": "SalesOrder to which this build is allocated",
            "nullable": true,
            "title": "Sales Order Reference",
            "type": "integer"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/BuildStatusEnum"
                }
            ],
            "description": "Build status code\n\n* `10` - Pending\n* `20` - Production\n* `30` - Cancelled\n* `40` - Complete",
            "readOnly": true,
            "title": "Build Status"
        },
        "status_text": {
            "readOnly": true,
            "type": "string"
        },
        "take_from": {
            "description": "Select location to take stock from for this build (leave blank to take from any stock location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "target_date": {
            "description": "Target date for build completion. Build will be overdue after this date.",
            "format": "date",
            "nullable": true,
            "title": "Target completion date",
            "type": "string"
        },
        "title": {
            "description": "Brief description of the build (optional)",
            "maxLength": 100,
            "title": "Description",
            "type": "string"
        },
        "url": {
            "readOnly": true,
            "type": "string"
        }
    },
    "required": [
        "barcode_hash",
        "completed",
        "creation_date",
        "issued_by_detail",
        "overdue",
        "part",
        "pk",
        "project_code_detail",
        "quantity",
        "reference",
        "responsible_detail",
        "status",
        "status_text",
        "url"
    ],
    "type": "object"
}

POST /api/build/{id}/allocate/

Description

API endpoint to allocate stock items to a build order.

  • The BuildOrder object is specified by the URL
  • Items to allocate are specified as a list called "items" with the following options:
    • bom_item: pk value of a given BomItem object (must match the part associated with this build)
    • stock_item: pk value of a given StockItem object
    • quantity: quantity to allocate
    • output: StockItem (build order output) to allocate stock against (optional)

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "items": [
        {
            "build_line": 0,
            "output": 0,
            "quantity": "string",
            "stock_item": 0
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for allocation stock items against a build order.",
    "properties": {
        "items": {
            "items": {
                "$ref": "#/components/schemas/BuildAllocationItem"
            },
            "type": "array"
        }
    },
    "required": [
        "items"
    ],
    "type": "object"
}

{
    "items": [
        {
            "build_line": 0,
            "output": 0,
            "quantity": "string",
            "stock_item": 0
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for allocation stock items against a build order.",
    "properties": {
        "items": {
            "items": {
                "$ref": "#/components/schemas/BuildAllocationItem"
            },
            "type": "array"
        }
    },
    "required": [
        "items"
    ],
    "type": "object"
}

{
    "items": [
        {
            "build_line": 0,
            "output": 0,
            "quantity": "string",
            "stock_item": 0
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for allocation stock items against a build order.",
    "properties": {
        "items": {
            "items": {
                "$ref": "#/components/schemas/BuildAllocationItem"
            },
            "type": "array"
        }
    },
    "required": [
        "items"
    ],
    "type": "object"
}

Response 201 Created

{
    "items": [
        {
            "build_line": 0,
            "output": 0,
            "quantity": "string",
            "stock_item": 0
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "DRF serializer for allocation stock items against a build order.",
    "properties": {
        "items": {
            "items": {
                "$ref": "#/components/schemas/BuildAllocationItem"
            },
            "type": "array"
        }
    },
    "required": [
        "items"
    ],
    "type": "object"
}

POST /api/build/{id}/auto-allocate/

Description

API endpoint for 'automatically' allocating stock against a build order.

  • Only looks at 'untracked' parts
  • If stock exists in a single location, easy!
  • If user decides that stock items are "fungible", allocate against multiple stock items
  • If the user wants to, allocate substite parts if the primary parts are not available.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "exclude_location": 0,
    "interchangeable": true,
    "location": 0,
    "optional_items": true,
    "substitutes": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for auto allocating stock items against a build order.",
    "properties": {
        "exclude_location": {
            "description": "Exclude stock items from this selected location",
            "nullable": true,
            "type": "integer"
        },
        "interchangeable": {
            "default": false,
            "description": "Stock items in multiple locations can be used interchangeably",
            "title": "Interchangeable Stock",
            "type": "boolean"
        },
        "location": {
            "description": "Stock location where parts are to be sourced (leave blank to take from any location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "optional_items": {
            "default": false,
            "description": "Allocate optional BOM items to build order",
            "type": "boolean"
        },
        "substitutes": {
            "default": true,
            "description": "Allow allocation of substitute parts",
            "title": "Substitute Stock",
            "type": "boolean"
        }
    },
    "type": "object"
}

{
    "exclude_location": 0,
    "interchangeable": true,
    "location": 0,
    "optional_items": true,
    "substitutes": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for auto allocating stock items against a build order.",
    "properties": {
        "exclude_location": {
            "description": "Exclude stock items from this selected location",
            "nullable": true,
            "type": "integer"
        },
        "interchangeable": {
            "default": false,
            "description": "Stock items in multiple locations can be used interchangeably",
            "title": "Interchangeable Stock",
            "type": "boolean"
        },
        "location": {
            "description": "Stock location where parts are to be sourced (leave blank to take from any location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "optional_items": {
            "default": false,
            "description": "Allocate optional BOM items to build order",
            "type": "boolean"
        },
        "substitutes": {
            "default": true,
            "description": "Allow allocation of substitute parts",
            "title": "Substitute Stock",
            "type": "boolean"
        }
    },
    "type": "object"
}

{
    "exclude_location": 0,
    "interchangeable": true,
    "location": 0,
    "optional_items": true,
    "substitutes": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for auto allocating stock items against a build order.",
    "properties": {
        "exclude_location": {
            "description": "Exclude stock items from this selected location",
            "nullable": true,
            "type": "integer"
        },
        "interchangeable": {
            "default": false,
            "description": "Stock items in multiple locations can be used interchangeably",
            "title": "Interchangeable Stock",
            "type": "boolean"
        },
        "location": {
            "description": "Stock location where parts are to be sourced (leave blank to take from any location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "optional_items": {
            "default": false,
            "description": "Allocate optional BOM items to build order",
            "type": "boolean"
        },
        "substitutes": {
            "default": true,
            "description": "Allow allocation of substitute parts",
            "title": "Substitute Stock",
            "type": "boolean"
        }
    },
    "type": "object"
}

Response 201 Created

{
    "exclude_location": 0,
    "interchangeable": true,
    "location": 0,
    "optional_items": true,
    "substitutes": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "DRF serializer for auto allocating stock items against a build order.",
    "properties": {
        "exclude_location": {
            "description": "Exclude stock items from this selected location",
            "nullable": true,
            "type": "integer"
        },
        "interchangeable": {
            "default": false,
            "description": "Stock items in multiple locations can be used interchangeably",
            "title": "Interchangeable Stock",
            "type": "boolean"
        },
        "location": {
            "description": "Stock location where parts are to be sourced (leave blank to take from any location)",
            "nullable": true,
            "title": "Source Location",
            "type": "integer"
        },
        "optional_items": {
            "default": false,
            "description": "Allocate optional BOM items to build order",
            "type": "boolean"
        },
        "substitutes": {
            "default": true,
            "description": "Allow allocation of substitute parts",
            "title": "Substitute Stock",
            "type": "boolean"
        }
    },
    "type": "object"
}

POST /api/build/{id}/cancel/

Description

API endpoint for cancelling a BuildOrder.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "remove_allocated_stock": true,
    "remove_incomplete_outputs": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer class for cancelling an active BuildOrder",
    "properties": {
        "remove_allocated_stock": {
            "default": false,
            "description": "Subtract any stock which has already been allocated to this build",
            "type": "boolean"
        },
        "remove_incomplete_outputs": {
            "default": false,
            "description": "Delete any build outputs which have not been completed",
            "type": "boolean"
        }
    },
    "type": "object"
}

{
    "remove_allocated_stock": true,
    "remove_incomplete_outputs": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer class for cancelling an active BuildOrder",
    "properties": {
        "remove_allocated_stock": {
            "default": false,
            "description": "Subtract any stock which has already been allocated to this build",
            "type": "boolean"
        },
        "remove_incomplete_outputs": {
            "default": false,
            "description": "Delete any build outputs which have not been completed",
            "type": "boolean"
        }
    },
    "type": "object"
}

{
    "remove_allocated_stock": true,
    "remove_incomplete_outputs": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer class for cancelling an active BuildOrder",
    "properties": {
        "remove_allocated_stock": {
            "default": false,
            "description": "Subtract any stock which has already been allocated to this build",
            "type": "boolean"
        },
        "remove_incomplete_outputs": {
            "default": false,
            "description": "Delete any build outputs which have not been completed",
            "type": "boolean"
        }
    },
    "type": "object"
}

Response 201 Created

{
    "remove_allocated_stock": true,
    "remove_incomplete_outputs": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "DRF serializer class for cancelling an active BuildOrder",
    "properties": {
        "remove_allocated_stock": {
            "default": false,
            "description": "Subtract any stock which has already been allocated to this build",
            "type": "boolean"
        },
        "remove_incomplete_outputs": {
            "default": false,
            "description": "Delete any build outputs which have not been completed",
            "type": "boolean"
        }
    },
    "type": "object"
}

POST /api/build/{id}/complete/

Description

API endpoint for completing build outputs.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "accept_incomplete_allocation": true,
    "location": 0,
    "notes": "string",
    "outputs": [
        {
            "output": 0
        }
    ],
    "status": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for completing one or more build outputs.",
    "properties": {
        "accept_incomplete_allocation": {
            "default": false,
            "description": "Complete outputs if stock has not been fully allocated",
            "type": "boolean"
        },
        "location": {
            "description": "Location for completed build outputs",
            "type": "integer"
        },
        "notes": {
            "type": "string"
        },
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutput"
            },
            "type": "array"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Status2a7Enum"
                }
            ],
            "default": 10
        }
    },
    "required": [
        "location",
        "outputs"
    ],
    "type": "object"
}

{
    "accept_incomplete_allocation": true,
    "location": 0,
    "notes": "string",
    "outputs": [
        {
            "output": 0
        }
    ],
    "status": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for completing one or more build outputs.",
    "properties": {
        "accept_incomplete_allocation": {
            "default": false,
            "description": "Complete outputs if stock has not been fully allocated",
            "type": "boolean"
        },
        "location": {
            "description": "Location for completed build outputs",
            "type": "integer"
        },
        "notes": {
            "type": "string"
        },
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutput"
            },
            "type": "array"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Status2a7Enum"
                }
            ],
            "default": 10
        }
    },
    "required": [
        "location",
        "outputs"
    ],
    "type": "object"
}

{
    "accept_incomplete_allocation": true,
    "location": 0,
    "notes": "string",
    "outputs": [
        {
            "output": 0
        }
    ],
    "status": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for completing one or more build outputs.",
    "properties": {
        "accept_incomplete_allocation": {
            "default": false,
            "description": "Complete outputs if stock has not been fully allocated",
            "type": "boolean"
        },
        "location": {
            "description": "Location for completed build outputs",
            "type": "integer"
        },
        "notes": {
            "type": "string"
        },
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutput"
            },
            "type": "array"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Status2a7Enum"
                }
            ],
            "default": 10
        }
    },
    "required": [
        "location",
        "outputs"
    ],
    "type": "object"
}

Response 201 Created

{
    "accept_incomplete_allocation": true,
    "location": 0,
    "notes": "string",
    "outputs": [
        {
            "output": 0
        }
    ],
    "status": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "DRF serializer for completing one or more build outputs.",
    "properties": {
        "accept_incomplete_allocation": {
            "default": false,
            "description": "Complete outputs if stock has not been fully allocated",
            "type": "boolean"
        },
        "location": {
            "description": "Location for completed build outputs",
            "type": "integer"
        },
        "notes": {
            "type": "string"
        },
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutput"
            },
            "type": "array"
        },
        "status": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/Status2a7Enum"
                }
            ],
            "default": 10
        }
    },
    "required": [
        "location",
        "outputs"
    ],
    "type": "object"
}

POST /api/build/{id}/create-output/

Description

API endpoint for creating new build output(s).

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "auto_allocate": true,
    "batch_code": "string",
    "quantity": "string",
    "serial_numbers": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for creating a new BuildOutput against a BuildOrder.\n\nURL pattern is \"/api/build/<pk>/create-output/\", where <pk> is the PK of a Build.\n\nThe Build object is provided to the serializer context.",
    "properties": {
        "auto_allocate": {
            "default": false,
            "description": "Automatically allocate required items with matching serial numbers",
            "nullable": true,
            "title": "Auto Allocate Serial Numbers",
            "type": "boolean"
        },
        "batch_code": {
            "description": "Batch code for this build output",
            "type": "string"
        },
        "quantity": {
            "description": "Enter quantity for build output",
            "format": "decimal",
            "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$",
            "type": "string"
        },
        "serial_numbers": {
            "description": "Enter serial numbers for build outputs",
            "type": "string"
        }
    },
    "required": [
        "quantity"
    ],
    "type": "object"
}

{
    "auto_allocate": true,
    "batch_code": "string",
    "quantity": "string",
    "serial_numbers": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for creating a new BuildOutput against a BuildOrder.\n\nURL pattern is \"/api/build/<pk>/create-output/\", where <pk> is the PK of a Build.\n\nThe Build object is provided to the serializer context.",
    "properties": {
        "auto_allocate": {
            "default": false,
            "description": "Automatically allocate required items with matching serial numbers",
            "nullable": true,
            "title": "Auto Allocate Serial Numbers",
            "type": "boolean"
        },
        "batch_code": {
            "description": "Batch code for this build output",
            "type": "string"
        },
        "quantity": {
            "description": "Enter quantity for build output",
            "format": "decimal",
            "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$",
            "type": "string"
        },
        "serial_numbers": {
            "description": "Enter serial numbers for build outputs",
            "type": "string"
        }
    },
    "required": [
        "quantity"
    ],
    "type": "object"
}

{
    "auto_allocate": true,
    "batch_code": "string",
    "quantity": "string",
    "serial_numbers": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer for creating a new BuildOutput against a BuildOrder.\n\nURL pattern is \"/api/build/<pk>/create-output/\", where <pk> is the PK of a Build.\n\nThe Build object is provided to the serializer context.",
    "properties": {
        "auto_allocate": {
            "default": false,
            "description": "Automatically allocate required items with matching serial numbers",
            "nullable": true,
            "title": "Auto Allocate Serial Numbers",
            "type": "boolean"
        },
        "batch_code": {
            "description": "Batch code for this build output",
            "type": "string"
        },
        "quantity": {
            "description": "Enter quantity for build output",
            "format": "decimal",
            "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$",
            "type": "string"
        },
        "serial_numbers": {
            "description": "Enter serial numbers for build outputs",
            "type": "string"
        }
    },
    "required": [
        "quantity"
    ],
    "type": "object"
}

Response 201 Created

{
    "auto_allocate": true,
    "batch_code": "string",
    "quantity": "string",
    "serial_numbers": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer for creating a new BuildOutput against a BuildOrder.\n\nURL pattern is \"/api/build/<pk>/create-output/\", where <pk> is the PK of a Build.\n\nThe Build object is provided to the serializer context.",
    "properties": {
        "auto_allocate": {
            "default": false,
            "description": "Automatically allocate required items with matching serial numbers",
            "nullable": true,
            "title": "Auto Allocate Serial Numbers",
            "type": "boolean"
        },
        "batch_code": {
            "description": "Batch code for this build output",
            "type": "string"
        },
        "quantity": {
            "description": "Enter quantity for build output",
            "format": "decimal",
            "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$",
            "type": "string"
        },
        "serial_numbers": {
            "description": "Enter serial numbers for build outputs",
            "type": "string"
        }
    },
    "required": [
        "quantity"
    ],
    "type": "object"
}

POST /api/build/{id}/delete-outputs/

Description

API endpoint for deleting multiple build outputs.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "outputs": [
        {
            "output": 0
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for deleting (cancelling) one or more build outputs.",
    "properties": {
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutput"
            },
            "type": "array"
        }
    },
    "required": [
        "outputs"
    ],
    "type": "object"
}

{
    "outputs": [
        {
            "output": 0
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for deleting (cancelling) one or more build outputs.",
    "properties": {
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutput"
            },
            "type": "array"
        }
    },
    "required": [
        "outputs"
    ],
    "type": "object"
}

{
    "outputs": [
        {
            "output": 0
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for deleting (cancelling) one or more build outputs.",
    "properties": {
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutput"
            },
            "type": "array"
        }
    },
    "required": [
        "outputs"
    ],
    "type": "object"
}

Response 201 Created

{
    "outputs": [
        {
            "output": 0
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "DRF serializer for deleting (cancelling) one or more build outputs.",
    "properties": {
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutput"
            },
            "type": "array"
        }
    },
    "required": [
        "outputs"
    ],
    "type": "object"
}

POST /api/build/{id}/finish/

Description

API endpoint for marking a build as finished (completed).

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "accept_incomplete": true,
    "accept_overallocated": null,
    "accept_unallocated": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for marking a BuildOrder as complete.",
    "properties": {
        "accept_incomplete": {
            "default": false,
            "description": "Accept that the required number of build outputs have not been completed",
            "type": "boolean"
        },
        "accept_overallocated": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/AcceptOverallocatedEnum"
                }
            ],
            "default": "reject",
            "description": "How do you want to handle extra stock items assigned to the build order\n\n* `reject` - Not permitted\n* `accept` - Accept as consumed by this build order\n* `trim` - Deallocate before completing this build order",
            "title": "Overallocated Stock"
        },
        "accept_unallocated": {
            "default": false,
            "description": "Accept that stock items have not been fully allocated to this build order",
            "type": "boolean"
        }
    },
    "type": "object"
}

{
    "accept_incomplete": true,
    "accept_overallocated": null,
    "accept_unallocated": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for marking a BuildOrder as complete.",
    "properties": {
        "accept_incomplete": {
            "default": false,
            "description": "Accept that the required number of build outputs have not been completed",
            "type": "boolean"
        },
        "accept_overallocated": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/AcceptOverallocatedEnum"
                }
            ],
            "default": "reject",
            "description": "How do you want to handle extra stock items assigned to the build order\n\n* `reject` - Not permitted\n* `accept` - Accept as consumed by this build order\n* `trim` - Deallocate before completing this build order",
            "title": "Overallocated Stock"
        },
        "accept_unallocated": {
            "default": false,
            "description": "Accept that stock items have not been fully allocated to this build order",
            "type": "boolean"
        }
    },
    "type": "object"
}

{
    "accept_incomplete": true,
    "accept_overallocated": null,
    "accept_unallocated": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for marking a BuildOrder as complete.",
    "properties": {
        "accept_incomplete": {
            "default": false,
            "description": "Accept that the required number of build outputs have not been completed",
            "type": "boolean"
        },
        "accept_overallocated": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/AcceptOverallocatedEnum"
                }
            ],
            "default": "reject",
            "description": "How do you want to handle extra stock items assigned to the build order\n\n* `reject` - Not permitted\n* `accept` - Accept as consumed by this build order\n* `trim` - Deallocate before completing this build order",
            "title": "Overallocated Stock"
        },
        "accept_unallocated": {
            "default": false,
            "description": "Accept that stock items have not been fully allocated to this build order",
            "type": "boolean"
        }
    },
    "type": "object"
}

Response 201 Created

{
    "accept_incomplete": true,
    "accept_overallocated": null,
    "accept_unallocated": true
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "DRF serializer for marking a BuildOrder as complete.",
    "properties": {
        "accept_incomplete": {
            "default": false,
            "description": "Accept that the required number of build outputs have not been completed",
            "type": "boolean"
        },
        "accept_overallocated": {
            "allOf": [
                {
                    "$ref": "#/components/schemas/AcceptOverallocatedEnum"
                }
            ],
            "default": "reject",
            "description": "How do you want to handle extra stock items assigned to the build order\n\n* `reject` - Not permitted\n* `accept` - Accept as consumed by this build order\n* `trim` - Deallocate before completing this build order",
            "title": "Overallocated Stock"
        },
        "accept_unallocated": {
            "default": false,
            "description": "Accept that stock items have not been fully allocated to this build order",
            "type": "boolean"
        }
    },
    "type": "object"
}

GET /api/build/{id}/metadata/

Description

Generic API endpoint for reading and editing metadata for a model.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Response 200 OK

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

PATCH /api/build/{id}/metadata/

Description

Generic API endpoint for reading and editing metadata for a model.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "type": "object"
}

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "type": "object"
}

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "type": "object"
}

Response 200 OK

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

PUT /api/build/{id}/metadata/

Description

Generic API endpoint for reading and editing metadata for a model.

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

Response 200 OK

{
    "metadata": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "Serializer class for model metadata API access.",
    "properties": {
        "metadata": {}
    },
    "required": [
        "metadata"
    ],
    "type": "object"
}

POST /api/build/{id}/scrap-outputs/

Description

API endpoint for scrapping build output(s).

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "discard_allocations": true,
    "location": 0,
    "notes": "string",
    "outputs": [
        {
            "output": 0,
            "quantity": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for scrapping one or more build outputs",
    "properties": {
        "discard_allocations": {
            "default": false,
            "description": "Discard any stock allocations for scrapped outputs",
            "type": "boolean"
        },
        "location": {
            "description": "Stock location for scrapped outputs",
            "type": "integer"
        },
        "notes": {
            "description": "Reason for scrapping build output(s)",
            "type": "string"
        },
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutputQuantity"
            },
            "type": "array"
        }
    },
    "required": [
        "location",
        "notes",
        "outputs"
    ],
    "type": "object"
}

{
    "discard_allocations": true,
    "location": 0,
    "notes": "string",
    "outputs": [
        {
            "output": 0,
            "quantity": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for scrapping one or more build outputs",
    "properties": {
        "discard_allocations": {
            "default": false,
            "description": "Discard any stock allocations for scrapped outputs",
            "type": "boolean"
        },
        "location": {
            "description": "Stock location for scrapped outputs",
            "type": "integer"
        },
        "notes": {
            "description": "Reason for scrapping build output(s)",
            "type": "string"
        },
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutputQuantity"
            },
            "type": "array"
        }
    },
    "required": [
        "location",
        "notes",
        "outputs"
    ],
    "type": "object"
}

{
    "discard_allocations": true,
    "location": 0,
    "notes": "string",
    "outputs": [
        {
            "output": 0,
            "quantity": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for scrapping one or more build outputs",
    "properties": {
        "discard_allocations": {
            "default": false,
            "description": "Discard any stock allocations for scrapped outputs",
            "type": "boolean"
        },
        "location": {
            "description": "Stock location for scrapped outputs",
            "type": "integer"
        },
        "notes": {
            "description": "Reason for scrapping build output(s)",
            "type": "string"
        },
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutputQuantity"
            },
            "type": "array"
        }
    },
    "required": [
        "location",
        "notes",
        "outputs"
    ],
    "type": "object"
}

Response 201 Created

{
    "discard_allocations": true,
    "location": 0,
    "notes": "string",
    "outputs": [
        {
            "output": 0,
            "quantity": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "DRF serializer for scrapping one or more build outputs",
    "properties": {
        "discard_allocations": {
            "default": false,
            "description": "Discard any stock allocations for scrapped outputs",
            "type": "boolean"
        },
        "location": {
            "description": "Stock location for scrapped outputs",
            "type": "integer"
        },
        "notes": {
            "description": "Reason for scrapping build output(s)",
            "type": "string"
        },
        "outputs": {
            "items": {
                "$ref": "#/components/schemas/BuildOutputQuantity"
            },
            "type": "array"
        }
    },
    "required": [
        "location",
        "notes",
        "outputs"
    ],
    "type": "object"
}

POST /api/build/{id}/unallocate/

Description

API endpoint for unallocating stock items from a build order.

  • The BuildOrder object is specified by the URL
  • "output" (StockItem) can optionally be specified
  • "bom_item" can optionally be specified

Input parameters

Parameter In Type Default Nullable Description
cookieAuth cookie string N/A No API key
basicAuth header string N/A No Basic authentication
tokenAuth header string N/A No Token-based authentication with required prefix "Token"
id path integer No

Request body

{
    "build_line": 0,
    "output": 0
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for unallocating stock from a BuildOrder.\n\nAllocated stock can be unallocated with a number of filters:\n\n- output: Filter against a particular build output (blank = untracked stock)\n- bom_item: Filter against a particular BOM line item",
    "properties": {
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "output": {
            "nullable": true,
            "title": "Build output",
            "type": "integer"
        }
    },
    "type": "object"
}

{
    "build_line": 0,
    "output": 0
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for unallocating stock from a BuildOrder.\n\nAllocated stock can be unallocated with a number of filters:\n\n- output: Filter against a particular build output (blank = untracked stock)\n- bom_item: Filter against a particular BOM line item",
    "properties": {
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "output": {
            "nullable": true,
            "title": "Build output",
            "type": "integer"
        }
    },
    "type": "object"
}

{
    "build_line": 0,
    "output": 0
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "description": "DRF serializer for unallocating stock from a BuildOrder.\n\nAllocated stock can be unallocated with a number of filters:\n\n- output: Filter against a particular build output (blank = untracked stock)\n- bom_item: Filter against a particular BOM line item",
    "properties": {
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "output": {
            "nullable": true,
            "title": "Build output",
            "type": "integer"
        }
    },
    "type": "object"
}

Response 201 Created

{
    "build_line": 0,
    "output": 0
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "DRF serializer for unallocating stock from a BuildOrder.\n\nAllocated stock can be unallocated with a number of filters:\n\n- output: Filter against a particular build output (blank = untracked stock)\n- bom_item: Filter against a particular BOM line item",
    "properties": {
        "build_line": {
            "nullable": true,
            "type": "integer"
        },
        "output": {
            "nullable": true,
            "title": "Build output",
            "type": "integer"
        }
    },
    "type": "object"
}

Schemas

AcceptOverallocatedEnum

Type: string

BomItem

Name Type
allow_variants boolean
available_stock number(double)
available_substitute_stock number(double)
available_variant_stock number(double)
building number(double)
consumable boolean
external_stock number(double)
inherited boolean
note string
on_order number(double)
optional boolean
overage string
part integer
pk integer
pricing_max string(decimal)| null
pricing_min string(decimal)| null
quantity number(double)
reference string
sub_part integer
substitutes Array<BomItemSubstitute>
validated boolean

BomItemSubstitute

Name Type
bom_item integer
part integer
part_detail
pk integer

Build

Name Type
barcode_hash string
batch string| null
completed integer
completion_date string(date)| null
creation_date string(date)
destination integer| null
issued_by integer| null
issued_by_detail
link string(uri)
notes string| null
overdue boolean
parent integer| null
part integer
pk integer
priority integer
project_code integer| null
project_code_detail
quantity number(double)
reference string
responsible integer| null
responsible_detail
sales_order integer| null
status
status_text string
take_from integer| null
target_date string(date)| null
title string
url string

BuildAllocation

Name Type
items Array<BuildAllocationItem>

BuildAllocationItem

Name Type
build_line integer
output integer| null
quantity string(decimal)
stock_item integer

BuildAttachment

Name Type
attachment string(uri)
build integer
comment string
filename string
link string(uri)| null
pk integer
upload_date string(date)
user integer| null
user_detail

BuildAutoAllocation

Name Type
exclude_location integer| null
interchangeable boolean
location integer| null
optional_items boolean
substitutes boolean

BuildCancel

Name Type
remove_allocated_stock boolean
remove_incomplete_outputs boolean

BuildComplete

Name Type
accept_incomplete boolean
accept_overallocated
accept_unallocated boolean

BuildItem

Name Type
build integer
build_line integer| null
install_into integer| null
location_detail
part_detail
pk integer
quantity number(double)
stock_item integer
stock_item_detail

BuildLine

Name Type
allocated number(double)
allocations Array<BuildItem>
available_stock number(double)
available_substitute_stock number(double)
available_variant_stock number(double)
bom_item integer
bom_item_detail
build integer
external_stock number(double)
in_production number(double)
on_order number(double)
part_detail
pk integer
quantity number(double)
total_available_stock number(double)

BuildOutput

Name Type
output integer

BuildOutputComplete

Name Type
accept_incomplete_allocation boolean
location integer
notes string
outputs Array<BuildOutput>
status

BuildOutputCreate

Name Type
auto_allocate boolean| null
batch_code string
quantity string(decimal)
serial_numbers string

BuildOutputDelete

Name Type
outputs Array<BuildOutput>

BuildOutputQuantity

Name Type
output integer
quantity string(decimal)

BuildOutputScrap

Name Type
discard_allocations boolean
location integer
notes string
outputs Array<BuildOutputQuantity>

BuildStatusEnum

Type: integer

BuildUnallocation

Name Type
build_line integer| null
output integer| null

Location

Name Type
barcode_hash string
custom_icon string
description string
external boolean
icon string
items integer
level integer
location_type integer| null
location_type_detail
name string
owner integer| null
parent integer| null
pathstring string
pk integer
structural boolean
sublocations integer
tags Array<string>
url string

Metadata

Name Type
metadata

Owner

Name Type
label string
name string
owner_id integer| null
pk integer

PaginatedBuildAttachmentList

Name Type
count integer
next string(uri)| null
previous string(uri)| null
results Array<BuildAttachment>

PaginatedBuildItemList

Name Type
count integer
next string(uri)| null
previous string(uri)| null
results Array<BuildItem>

PaginatedBuildLineList

Name Type
count integer
next string(uri)| null
previous string(uri)| null
results Array<BuildLine>

PaginatedBuildList

Name Type
count integer
next string(uri)| null
previous string(uri)| null
results Array<Build>

Part

Name Type
active boolean
allocated_to_build_orders number(double)
allocated_to_sales_orders number(double)
assembly boolean
barcode_hash string
building number(double)
category integer
component boolean
creation_date string(date)| null
creation_user integer| null
default_expiry integer
default_location integer| null
default_supplier integer| null
description string
existing_image string
external_stock number(double)
full_name string
image string(uri)| null
in_stock number(double)
IPN string| null
is_template boolean
keywords string| null
last_stocktake string(date)| null
link string(uri)| null
minimum_stock number(double)
name string
notes string| null
ordering number(double)
pk integer
purchaseable boolean
remote_image string(uri)
required_for_build_orders integer
required_for_sales_orders integer
responsible integer| null
revision string| null
salable boolean
starred boolean
stock_item_count integer
suppliers integer
tags Array<string>
thumbnail string
total_in_stock number(double)
trackable boolean
unallocated_stock number(double)
units string| null
variant_of integer| null
variant_stock number(double)
virtual boolean

PartBrief

Name Type
active boolean
assembly boolean
barcode_hash string
default_location integer| null
description string
full_name string
image string(uri)
IPN string| null
is_template boolean
name string
pk integer
purchaseable boolean
revision string| null
salable boolean
thumbnail string
trackable boolean
units string| null
virtual boolean

PatchedBuild

Name Type
barcode_hash string
batch string| null
completed integer
completion_date string(date)| null
creation_date string(date)
destination integer| null
issued_by integer| null
issued_by_detail
link string(uri)
notes string| null
overdue boolean
parent integer| null
part integer
part_detail
pk integer
priority integer
project_code integer| null
project_code_detail
quantity number(double)
reference string
responsible integer| null
responsible_detail
sales_order integer| null
status
status_text string
take_from integer| null
target_date string(date)| null
title string
url string

PatchedBuildAttachment

Name Type
attachment string(uri)
build integer
comment string
filename string
link string(uri)| null
pk integer
upload_date string(date)
user integer| null
user_detail

PatchedBuildItem

Name Type
build integer
build_line integer| null
install_into integer| null
location_detail
part_detail
pk integer
quantity number(double)
stock_item integer
stock_item_detail

PatchedBuildLine

Name Type
allocated number(double)
allocations Array<BuildItem>
available_stock number(double)
available_substitute_stock number(double)
available_variant_stock number(double)
bom_item integer
bom_item_detail
build integer
external_stock number(double)
in_production number(double)
on_order number(double)
part_detail
pk integer
quantity number(double)
total_available_stock number(double)

PatchedMetadata

Name Type
metadata

ProjectCode

Name Type
code string
description string
pk integer
responsible integer| null
responsible_detail

Status2a7Enum

Type: integer

StockItemSerializerBrief

Name Type
barcode_hash string
location integer| null
part integer
part_name string
pk integer
quantity number(double)
serial string| null
supplier_part integer| null

StockLocationType

Name Type
description string
icon string
location_count integer
name string
pk integer

User

Name Type
email string()
first_name string
last_name string
pk integer
username string

Security schemes

Name Type Scheme Description
basicAuth http basic
cookieAuth apiKey
tokenAuth apiKey Token-based authentication with required prefix "Token"

More documentation

More information about InvenTree in the official docs


For more information: https://docs.inventree.org