POST v1/ProductionJobs

Create a list of Production Jobs.

Request Information

URI Parameters

None.

Body Parameters

Collection of ProductionJob
NameDescriptionTypeAdditional information
Id

A unique Job ID.

integer

None.

CreatedDate

Created date time.

date

None.

ModifiedDate

Last modified date time.

date

None.

DueDate

Due Date

date

None.

CompletedDate

Completed Date

date

None.

CreatedBy

Created by User ID.

integer

None.

CompletedBy

Completed by User ID.

integer

None.

IsApproved

Is Approved (default: true)

boolean

None.

BranchId

Branch ID

integer

None.

ProjectName

Project Name

string

None.

ProductionNotes

Production Notes.

string

None.

Reference

The unique Job reference.

string

Max length: 20

Source

The source

string

None.

TotalCost

Product Total

decimal number

None.

Products

Production Job Products.

Collection of ProductionJobProduct

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "createdDate": "2020-10-20T19:51:55.6219864+13:00",
    "modifiedDate": "2020-10-20T19:51:55.6219864+13:00",
    "dueDate": "2020-10-20T19:51:55.6219864+13:00",
    "completedDate": "2020-10-20T19:51:55.6219864+13:00",
    "createdBy": 2,
    "completedBy": 3,
    "isApproved": true,
    "branchId": 5,
    "projectName": "sample string 6",
    "productionNotes": "sample string 7",
    "reference": "sample string 8",
    "source": "sample string 9",
    "totalCost": 10.0,
    "products": [
      {
        "id": 1,
        "productId": 4,
        "productOptionId": 5,
        "type": "Undefined",
        "sort": 6,
        "code": "sample string 7",
        "name": "sample string 8",
        "option1": "sample string 9",
        "option2": "sample string 10",
        "option3": "sample string 11",
        "notes": "sample string 12",
        "dueDate": "2020-10-20T19:51:55.6219864+13:00",
        "standardQty": 13.0,
        "actualQty": 14.0,
        "unitCost": 1.0,
        "components": [
          {
            "id": 2,
            "productId": 5,
            "productOptionId": 6,
            "type": "Undefined",
            "sort": 7,
            "code": "sample string 8",
            "name": "sample string 9",
            "option1": "sample string 10",
            "option2": "sample string 11",
            "option3": "sample string 12",
            "notes": "sample string 13",
            "dueDate": "2020-10-20T19:51:55.6219864+13:00",
            "standardQty": 14.0,
            "actualQty": 15.0,
            "unitCost": 1.0
          },
          {
            "id": 2,
            "productId": 5,
            "productOptionId": 6,
            "type": "Undefined",
            "sort": 7,
            "code": "sample string 8",
            "name": "sample string 9",
            "option1": "sample string 10",
            "option2": "sample string 11",
            "option3": "sample string 12",
            "notes": "sample string 13",
            "dueDate": "2020-10-20T19:51:55.6219864+13:00",
            "standardQty": 14.0,
            "actualQty": 15.0,
            "unitCost": 1.0
          }
        ]
      },
      {
        "id": 1,
        "productId": 4,
        "productOptionId": 5,
        "type": "Undefined",
        "sort": 6,
        "code": "sample string 7",
        "name": "sample string 8",
        "option1": "sample string 9",
        "option2": "sample string 10",
        "option3": "sample string 11",
        "notes": "sample string 12",
        "dueDate": "2020-10-20T19:51:55.6219864+13:00",
        "standardQty": 13.0,
        "actualQty": 14.0,
        "unitCost": 1.0,
        "components": [
          {
            "id": 2,
            "productId": 5,
            "productOptionId": 6,
            "type": "Undefined",
            "sort": 7,
            "code": "sample string 8",
            "name": "sample string 9",
            "option1": "sample string 10",
            "option2": "sample string 11",
            "option3": "sample string 12",
            "notes": "sample string 13",
            "dueDate": "2020-10-20T19:51:55.6219864+13:00",
            "standardQty": 14.0,
            "actualQty": 15.0,
            "unitCost": 1.0
          },
          {
            "id": 2,
            "productId": 5,
            "productOptionId": 6,
            "type": "Undefined",
            "sort": 7,
            "code": "sample string 8",
            "name": "sample string 9",
            "option1": "sample string 10",
            "option2": "sample string 11",
            "option3": "sample string 12",
            "notes": "sample string 13",
            "dueDate": "2020-10-20T19:51:55.6219864+13:00",
            "standardQty": 14.0,
            "actualQty": 15.0,
            "unitCost": 1.0
          }
        ]
      }
    ]
  },
  {
    "id": 1,
    "createdDate": "2020-10-20T19:51:55.6219864+13:00",
    "modifiedDate": "2020-10-20T19:51:55.6219864+13:00",
    "dueDate": "2020-10-20T19:51:55.6219864+13:00",
    "completedDate": "2020-10-20T19:51:55.6219864+13:00",
    "createdBy": 2,
    "completedBy": 3,
    "isApproved": true,
    "branchId": 5,
    "projectName": "sample string 6",
    "productionNotes": "sample string 7",
    "reference": "sample string 8",
    "source": "sample string 9",
    "totalCost": 10.0,
    "products": [
      {
        "id": 1,
        "productId": 4,
        "productOptionId": 5,
        "type": "Undefined",
        "sort": 6,
        "code": "sample string 7",
        "name": "sample string 8",
        "option1": "sample string 9",
        "option2": "sample string 10",
        "option3": "sample string 11",
        "notes": "sample string 12",
        "dueDate": "2020-10-20T19:51:55.6219864+13:00",
        "standardQty": 13.0,
        "actualQty": 14.0,
        "unitCost": 1.0,
        "components": [
          {
            "id": 2,
            "productId": 5,
            "productOptionId": 6,
            "type": "Undefined",
            "sort": 7,
            "code": "sample string 8",
            "name": "sample string 9",
            "option1": "sample string 10",
            "option2": "sample string 11",
            "option3": "sample string 12",
            "notes": "sample string 13",
            "dueDate": "2020-10-20T19:51:55.6219864+13:00",
            "standardQty": 14.0,
            "actualQty": 15.0,
            "unitCost": 1.0
          },
          {
            "id": 2,
            "productId": 5,
            "productOptionId": 6,
            "type": "Undefined",
            "sort": 7,
            "code": "sample string 8",
            "name": "sample string 9",
            "option1": "sample string 10",
            "option2": "sample string 11",
            "option3": "sample string 12",
            "notes": "sample string 13",
            "dueDate": "2020-10-20T19:51:55.6219864+13:00",
            "standardQty": 14.0,
            "actualQty": 15.0,
            "unitCost": 1.0
          }
        ]
      },
      {
        "id": 1,
        "productId": 4,
        "productOptionId": 5,
        "type": "Undefined",
        "sort": 6,
        "code": "sample string 7",
        "name": "sample string 8",
        "option1": "sample string 9",
        "option2": "sample string 10",
        "option3": "sample string 11",
        "notes": "sample string 12",
        "dueDate": "2020-10-20T19:51:55.6219864+13:00",
        "standardQty": 13.0,
        "actualQty": 14.0,
        "unitCost": 1.0,
        "components": [
          {
            "id": 2,
            "productId": 5,
            "productOptionId": 6,
            "type": "Undefined",
            "sort": 7,
            "code": "sample string 8",
            "name": "sample string 9",
            "option1": "sample string 10",
            "option2": "sample string 11",
            "option3": "sample string 12",
            "notes": "sample string 13",
            "dueDate": "2020-10-20T19:51:55.6219864+13:00",
            "standardQty": 14.0,
            "actualQty": 15.0,
            "unitCost": 1.0
          },
          {
            "id": 2,
            "productId": 5,
            "productOptionId": 6,
            "type": "Undefined",
            "sort": 7,
            "code": "sample string 8",
            "name": "sample string 9",
            "option1": "sample string 10",
            "option2": "sample string 11",
            "option3": "sample string 12",
            "notes": "sample string 13",
            "dueDate": "2020-10-20T19:51:55.6219864+13:00",
            "standardQty": 14.0,
            "actualQty": 15.0,
            "unitCost": 1.0
          }
        ]
      }
    ]
  }
]

Response Information

Resource Description

Collection of BatchResultItem
NameDescriptionTypeAdditional information
Index

​The index at which the record was positioned in an insert or update.

integer

None.

Success

​True if the record was successfully inserted or updated.

boolean

None.

Id

The record Id.

integer

None.

Code

The record code.

string

None.

Errors

A list of errors if the insert or update fails.

Collection of string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "index": 0,
    "success": true,
    "id": 1,
    "code": "SALE4-28",
    "errors": []
  },
  {
    "index": 1,
    "success": true,
    "id": 2,
    "code": "SALE5-29",
    "errors": []
  }
]