Saltar al contenido principal
POST
/
v1
/
production
/
operations
Create a new operation for a production order
curl --request POST \
  --url https://api.bold-factory.com/v1/production/operations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orderReference": "<string>",
  "name": "<string>",
  "operationTypeReference": "<string>",
  "plannedQuantity": 123,
  "requiredEmployees": 123,
  "externalReference": "<string>",
  "workstationReference": "<string>"
}
'
{
  "id": "<string>",
  "externalReference": "<string>",
  "orderId": "<string>",
  "order": {
    "id": "<string>",
    "externalReference": "<string>",
    "code": "<string>",
    "skuId": "<string>",
    "sku": {
      "id": "<string>",
      "externalReference": "<string>",
      "code": "<string>",
      "name": "<string>",
      "status": "<string>",
      "productId": "<string>",
      "managesLots": true,
      "unit": {
        "id": "<string>",
        "code": "<string>",
        "name": "<string>"
      },
      "displayDecimalPlaces": 123
    },
    "requestId": "<string>",
    "relatedId": "<string>",
    "requester": "<string>",
    "recipeId": "<string>",
    "recipe": {
      "id": "<string>",
      "externalReference": "<string>",
      "name": "<string>",
      "recipeId": "<string>",
      "productId": "<string>",
      "recipe": {
        "id": "<string>",
        "externalReference": "<string>",
        "name": "<string>",
        "productId": "<string>",
        "product": {
          "id": "<string>",
          "code": "<string>",
          "name": "<string>",
          "externalReference": "<string>"
        },
        "conditionFormula": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "createdBy": "<string>",
        "lastModifiedAt": "2023-11-07T05:31:56Z",
        "lastModifiedBy": "<string>"
      },
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "obsoleteRecipe": true,
    "plannedQuantity": 123,
    "completedQuantity": 123,
    "rejectedQuantity": 123,
    "notes": "<string>",
    "requiredAvailability": {
      "time": "2023-11-07T05:31:56Z"
    },
    "plannedAt": "2023-11-07T05:31:56Z",
    "startedAt": "2023-11-07T05:31:56Z",
    "cancelledAt": "2023-11-07T05:31:56Z",
    "finishedAt": "2023-11-07T05:31:56Z",
    "targetedAt": "2023-11-07T05:31:56Z",
    "stockExpectedAt": "2023-11-07T05:31:56Z",
    "plannedDurationSeconds": 123,
    "plannedManpowerSeconds": 123,
    "completedWorkloadSeconds": 123,
    "completedDurationSeconds": 123,
    "netScheduledSeconds": 123,
    "netOperatingSeconds": 123,
    "realManpowerSeconds": 123,
    "completionPercent": 123,
    "availability": 123,
    "efficiency": 123,
    "productivity": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "name": "<string>",
  "orderCode": "<string>",
  "isFinalOperation": true,
  "skuId": "<string>",
  "sku": {
    "id": "<string>",
    "externalReference": "<string>",
    "code": "<string>",
    "name": "<string>",
    "status": "<string>",
    "productId": "<string>",
    "managesLots": true,
    "unit": {
      "id": "<string>",
      "code": "<string>",
      "name": "<string>"
    },
    "displayDecimalPlaces": 123
  },
  "positionX": 123,
  "positionY": 123,
  "restrictedBy": [
    {
      "id": "<string>",
      "fromId": "<string>",
      "from": null,
      "toId": "<string>",
      "to": null
    }
  ],
  "requiredCharacteristicId": "<string>",
  "requiredCharacteristic": {
    "id": "<string>",
    "name": "<string>",
    "toolsCount": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "toolId": "<string>",
  "tool": {
    "id": "<string>",
    "name": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "typeId": "<string>",
  "type": {
    "id": "<string>",
    "externalReference": "<string>",
    "name": "<string>",
    "description": "<string>",
    "possibleWorkstations": 123,
    "skillCount": 123,
    "deletedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "workstationId": "<string>",
  "workstation": {
    "id": "<string>",
    "externalReference": "<string>",
    "name": "<string>",
    "description": "<string>",
    "areaId": "<string>",
    "area": {
      "id": "<string>",
      "externalReference": "<string>",
      "name": "<string>",
      "description": "<string>",
      "parentId": "<string>",
      "parent": null,
      "deletedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "autocompleteOperations": true,
    "infiniteCapacity": true,
    "deletedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "operationsGroupId": "<string>",
  "stockExpectedAt": "2023-11-07T05:31:56Z",
  "requiredEmployees": 123,
  "plannedQuantity": 123,
  "completedQuantity": 123,
  "rejectedQuantity": 123,
  "plannedDurationSeconds": 123,
  "plannedManpowerSeconds": 123,
  "completedManpowerSeconds": 123,
  "completedDurationSeconds": 123,
  "elapsedSeconds": 123,
  "netScheduledSeconds": 123,
  "netOperatingSeconds": 123,
  "realManpowerSeconds": 123,
  "completionPercent": 123,
  "availability": 123,
  "efficiency": 123,
  "productivity": 123,
  "requiredAvailability": {
    "time": "2023-11-07T05:31:56Z"
  },
  "startedAt": "2023-11-07T05:31:56Z",
  "finishedAt": "2023-11-07T05:31:56Z",
  "targetedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedAt": "2023-11-07T05:31:56Z",
  "lastModifiedBy": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Cuerpo

application/json
orderReference
string
requerido
name
string
requerido
operationTypeReference
string
requerido
plannedQuantity
null | number<double>
requiredEmployees
null | number<double>
externalReference
null | string
workstationReference
null | string

Respuesta

Created

id
string
requerido
externalReference
null | string
requerido
orderId
string
requerido
order
object
requerido
name
string
requerido
orderCode
string
requerido
isFinalOperation
boolean
requerido
skuId
string
requerido
sku
object
requerido
positionX
number<double>
requerido
positionY
number<double>
requerido
restrictedBy
object[]
requerido
requiredCharacteristicId
null | string
requerido
requiredCharacteristic
object
requerido
toolId
null | string
requerido
tool
object
requerido
typeId
string
requerido
type
object
requerido
workstationId
null | string
requerido
workstation
object
requerido
operationsGroupId
null | string
requerido
status
enum<string>
requerido
Opciones disponibles:
Cancelled,
Pending,
Planned,
Paused,
InProcess,
Finished
stockStatus
enum<string>
requerido
Opciones disponibles:
Pending,
Planned,
Ready,
NotRequired
stockExpectedAt
null | string<date-time>
requerido
requiredEmployees
number<double>
requerido
plannedQuantity
number<double>
requerido
completedQuantity
number<double>
requerido
rejectedQuantity
number<double>
requerido
plannedDurationSeconds
number<double>
requerido
plannedManpowerSeconds
number<double>
requerido
completedManpowerSeconds
number<double>
requerido
completedDurationSeconds
number<double>
requerido
elapsedSeconds
number<double>
requerido
netScheduledSeconds
number<double>
requerido
netOperatingSeconds
number<double>
requerido
realManpowerSeconds
number<double>
requerido
completionPercent
number<double>
requerido
availability
null | number<double>
requerido
efficiency
null | number<double>
requerido
productivity
null | number<double>
requerido
requiredAvailability
object
requerido
startedAt
null | string<date-time>
requerido
finishedAt
null | string<date-time>
requerido
targetedAt
null | string<date-time>
requerido
createdAt
string<date-time>
requerido
createdBy
string
requerido
lastModifiedAt
string<date-time>
requerido
lastModifiedBy
string
requerido