Request

Response

    Create Production Record
    POST

    production-records

    Creates a new Production Record.

    Resource Information

    Method and URI
    POST
    https://api.aps.autodesk.com/fusion-operations/v2/production-records
    Authentication Context
    No security required
    Required OAuth Scopes
    data:read data:write
    Data Format
    JSON

    Request

    Headers

    Content-Type*
    string
    Must be application/json
    * Required

    Request

    Body Structure

    The Production Record object to be created, conforming to the specified schema.

    Expand all
    productionOrder*
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf*
    0*
    1*
    product
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    operation*
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf*
    0*
    1*
    worker*
    id
    int
    number
    int
    anyOf*
    0*
    1*
    machine
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    startTime*
    datetime: ISO 8601
    Start time of the Production Record (e.g. 2025-06-21T14:07:17Z)
    endTime*
    datetime: ISO 8601
    End time of the Production Record (e.g. 2025-06-21T15:07:17Z). During the production execution, this value is equal to the start time.
    quantity*
    number
    Quantity produced in this Production Record.
    finished*
    boolean
    Indicates whether the Production Record is finished.
    lot
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    boxes
    string
    Box numbers associated with the Production Record. Separated by commas.
    wastes
    array: object
    List of Waste records associated with the Production Record.
    wasteCode*
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf*
    0*
    1*
    quantity*
    number
    Quantity of Waste produced.
    parameters
    array: object
    List of parameters associated with the Production Record.
    name
    string
    value
    string
    consumptions
    array: object
    List of consumptions associated with the Production Record.
    product*
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf*
    0*
    1*
    quantity*
    number
    Quantity of the Product consumed.
    lot
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    finishedBy
    id
    int
    number
    int
    anyOf
    0
    1
    rework
    boolean
    Indicates whether the Production Record is a rework.
    training
    boolean
    Indicates whether the Production Record was performed during a training session.
    site
    Site associated with the Production Record.
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    Site associated with the Production Record.
    0
    1
    * Required

    Response

    HTTP Status Code Summary

    201
    Created
    Production Record successfully created.
    400
    Bad Request
    Bad request due to invalid data.
    401
    Unauthorized
    The access token is invalid. It may have either expired or may not be a three-legged access token. Please verify the token and retry the request.
    403
    Forbidden
    The request was successfully validated but lacked required permission. Please verify your token permissions and retry the request.
    429
    Too Many Requests
    Rate limit exceeded; wait some time before retrying.
    500
    Internal Server Error
    An unknown server-side error occurred. Please try again later. If the problem persists, please contact support.

    Response

    Header (429)

    Retry-After
    integer
    The number of seconds to wait before retrying the request.

    Response

    Body Structure (201)

    Expand all
    id
    int
    Unique identifier of the Production Order.
    productionOrder
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    product
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    name
    string
    Name of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    operation
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    name
    string
    Name of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    worker
    id
    int
    number
    int
    name
    string
    Max length: 255
    anyOf
    0
    1
    machine
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    name
    string
    Name of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    startTime
    datetime: ISO 8601
    Start time of the Production Record (e.g. 2025-06-21T14:07:17Z)
    endTime
    datetime: ISO 8601
    End time of the Production Record (e.g. 2025-06-21T15:07:17Z). During the production execution, this value is equal to the start time.
    timeSpent
    string
    Duration the Production Record took (ISO 8601 duration, e.g. PT3H15M30S).
    timeEstimated
    string
    Estimated duration for the Production Record (ISO 8601 duration, e.g. PT2H15M30S).
    quantity
    number
    Quantity produced in this Production Record.
    finished
    boolean
    Indicates whether the Production Record is finished.
    teamId
    string
    identifier of the team associated with the Production Record when using team operations.
    lot
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    cost
    number
    Cost associated with the Production Record.
    boxes
    string
    Box numbers associated with the Production Record. Separated by commas.
    wastes
    array: object
    List of Waste records associated with the Production Record.
    id
    int
    Unique identifier of the Waste record.
    wasteCode
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    quantity
    number
    Quantity of Waste produced.
    parameters
    array: object
    List of parameters associated with the Production Record.
    name
    string
    value
    string
    consumptions
    array: object
    List of consumptions associated with the Production Record.
    id
    int
    Unique identifier of the Consumption record.
    product
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    name
    string
    Name of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    quantity
    number
    Quantity of the Product consumed.
    lot
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    finishedBy
    id
    int
    number
    int
    name
    string
    Max length: 255
    anyOf
    0
    1
    rework
    boolean
    Indicates whether the Production Record is a rework.
    training
    boolean
    Indicates whether the Production Record was performed during a training session.
    site
    Site associated with the Production Record.
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    Site associated with the Production Record.
    0
    1

    Example

    Production Record successfully created.

    Example of an Production Record to be created

    Request

    curl -v 'https://developer.api.autodesk.com/fusion-operations/v2/production-records' \
      -X 'POST' \
      -H 'Authorization: ' \
      -H 'Content-Type: application/json' \
      -d '{
            "productionOrder": {
              "id": 382
            },
            "product": {
              "id": 45
            },
            "operation": {
              "id": 150
            },
            "worker": {
              "id": 20
            },
            "machine": {
              "id": 10
            },
            "startTime": "2024-04-01T10:00:00Z",
            "endTime": "2024-04-01T10:00:00Z",
            "timeSpent": "PT0S",
            "timeEstimated": "PT0H5M0S",
            "quantity": 0.0,
            "finished": false,
            "parameters": [
              {
                "name": "Color",
                "value": "Blue"
              },
              {
                "name": "Size",
                "value": "M"
              }
            ],
            "rework": false,
            "training": false
          }'
    
    Show More

    Example of a finished Production Record to be created

    Request

    curl -v 'https://developer.api.autodesk.com/fusion-operations/v2/production-records' \
      -X 'POST' \
      -H 'Authorization: ' \
      -H 'Content-Type: application/json' \
      -d '{
            "productionOrder": {
              "id": 382
            },
            "product": {
              "id": 45
            },
            "operation": {
              "id": 150
            },
            "worker": {
              "number": 20
            },
            "machine": {
              "code": "MC-100"
            },
            "startTime": "2024-04-01T10:00:00Z",
            "endTime": "2024-04-01T11:35:00Z",
            "quantity": 5.0,
            "finished": true,
            "lot": {
              "code": "LOT12345"
            },
            "boxes": "1,2,3",
            "wastes": [
              {
                "quantity": 0.5,
                "wasteCode": {
                  "id": 301
                }
              }
            ],
            "parameters": [
              {
                "code": "Temp",
                "value": "200C"
              },
              {
                "code": "Pressure",
                "value": "5bar"
              }
            ],
            "consumptions": [
              {
                "product": {
                  "id": 60
                },
                "quantity": 2.0,
                "lot": {
                  "code": "MAT-LOT-001"
                }
              }
            ],
            "rework": false,
            "training": false
          }'
    
    Show More

    Response

    {
      "id": 382,
      "productionOrder": {
        "id": 382,
        "code": "PO-1001"
      },
      "product": {
        "id": 45,
        "code": "ProductX",
        "name": "Product X 100"
      },
      "operation": {
        "id": 150,
        "code": "OP-5001",
        "name": "Operation 5001"
      },
      "worker": {
        "number": 20,
        "name": "Worker 20"
      },
      "machine": {
        "code": "MC-100",
        "name": "Machine MC-100"
      },
      "startTime": "2024-04-01T10:00:00Z",
      "endTime": "2024-04-01T11:35:00Z",
      "quantity": 5.0,
      "finished": true,
      "lot": {
        "id": 78,
        "code": "LOT12345"
      },
      "cost": 145.75,
      "boxes": "1,2,3",
      "wastes": [
        {
          "quantity": 0.5,
          "wasteCode": {
            "id": 301,
            "code": "WST-01"
          }
        }
      ],
      "parameters": [
        {
          "code": "Temp",
          "value": "200C"
        },
        {
          "code": "Pressure",
          "value": "5bar"
        }
      ],
      "consumptions": [
        {
          "product": {
            "id": 60,
            "code": "MaterialA",
            "name": "Material A"
          },
          "quantity": 2.0,
          "lot": {
            "id": 501,
            "code": "MAT-LOT-001"
          }
        }
      ],
      "rework": false,
      "training": false,
      "site": {
        "id": 12,
        "code": "SITE-01"
      }
    }
    
    Show More