Saltar al contenido principal
POST
/
v1
/
production
/
operationsGroups
Create a new operations group
curl --request POST \
  --url https://api.bold-factory.com/v1/production/operationsGroups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "operationIds": [
    "<string>"
  ],
  "workstationReference": "<string>",
  "targetTime": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "notes": "<string>",
  "code": "<string>",
  "externalReference": "<string>"
}
'
{
  "id": "<string>",
  "externalReference": "<string>",
  "code": "<string>",
  "name": "<string>",
  "notes": "<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>"
  },
  "totalQuantity": 123,
  "completedQuantity": 123,
  "targetTime": "2023-11-07T05:31:56Z",
  "stockExpectedAt": "2023-11-07T05:31:56Z",
  "operations": [
    {
      "operationId": "<string>",
      "orderId": "<string>",
      "operation": {
        "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>"
      },
      "availability": {
        "expectedAt": "2023-11-07T05:31:56Z"
      }
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedAt": "2023-11-07T05:31:56Z",
  "lastModifiedBy": "<string>",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json
operationIds
string[]
requerido
workstationReference
string
requerido
targetTime
string<date-time>
requerido
name
string
requerido
notes
null | string
code
null | string
externalReference
null | string

Respuesta

Created

id
string
requerido
externalReference
null | string
requerido
code
string
requerido
name
string
requerido
notes
null | string
requerido
status
enum<string>
requerido
Opciones disponibles:
Planned,
Paused,
InProcess,
Finished
workstationId
null | string
requerido
workstation
object
requerido
totalQuantity
number<double>
requerido
completedQuantity
number<double>
requerido
targetTime
string<date-time>
requerido
stockStatus
enum<string>
requerido
Opciones disponibles:
Pending,
Planned,
Ready,
NotRequired
stockExpectedAt
null | string<date-time>
requerido
operations
object[]
requerido
createdAt
string<date-time>
requerido
createdBy
string
requerido
lastModifiedAt
string<date-time>
requerido
lastModifiedBy
string
requerido
deletedAt
null | string<date-time>
requerido