Update properties of a Production Record
PATCH
production-records/{productionRecordId}
Modifies only the specified attributes in the request body for the identified Production Record. Attributes not included in the request remain unchanged.
Resource Information
| Method and URI | PATCH https://api.aps.autodesk.com/fusion-operations/v2/production-records/{productionRecordId} |
| 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
URI Parameters
| productionRecordId int | Unique identifier of the Production Record to update. |
Request
Body Structure
The Production Record attributes to be updated, conforming to the specified schema. Only the provided fields will be modified.
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
| 200 OK | Production Record updated successfully. |
| 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. |
| 404 Not Found | The resource in the path does not exist. |
| 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 (200)
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 updated successfully.
Request
curl -v 'https://developer.api.autodesk.com/fusion-operations/v2/production-records/:productionRecordId' \
-X 'PATCH' \
-H 'Authorization: ' \
-H 'Content-Type: application/json' \
-d '{
"quantity": 10.0
}'
Response
{
"id": 74523,
"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": {
"id": 20,
"name": "Worker 200",
"number": 200
},
"machine": {
"id": 10,
"code": "MC-100",
"name": "Machine 100"
},
"startTime": "2024-04-01T10:00:00Z",
"endTime": "2024-04-01T11:35:00Z",
"quantity": 10.0,
"timeSpent": "PT1H35M0S",
"timeEstimated": "PT0H5M0S",
"finished": true,
"team": null,
"lot": {
"id": 78,
"code": "LOT12345"
},
"cost": 0.0,
"boxes": null,
"wastes": [
{
"quantity": 0.5,
"wasteCode": {
"id": 301,
"code": "WST-01"
}
},
{
"quantity": 0.2,
"wasteCode": {
"id": 302,
"code": "WST-02"
}
}
],
"parameters": [
{
"code": "Temp",
"value": "200C"
},
{
"code": "Pressure",
"value": "5bar"
}
],
"consumptions": [
{
"id": 8131,
"quantity": 2.0,
"product": {
"id": 60,
"code": "MaterialA",
"name": "Material A"
},
"lot": {
"id": 501,
"code": "MAT-LOT-001"
}
},
{
"id": 74524,
"quantity": 1.5,
"product": {
"id": 61,
"code": "MaterialB",
"name": "Material B"
},
"lot": {
"id": 502,
"code": "MAT-LOT-002"
}
}
],
"finishedBy": {
"id": 25,
"name": "Worker 250",
"number": 250
},
"rework": false,
"training": false,
"site": {
"id": 12,
"code": "SITE-01"
}
}
Show More